/* ==============================
   Snurlz – App Development Hub
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Poppins:wght@300;400;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:       #6e2d8e;
  --purple-dark:  #4e1f66;
  --purple-mid:   #7d3aa0;
  --purple-light: #f3ebf7;
  --dark:         #1c1c2e;
  --text:         #2d2d2d;
  --text-muted:   #666;
  --border:       #e0e0e0;
  --bg-light:     #f7f7f9;
  --white:        #ffffff;
  --radius:       6px;
  --shadow:       0 2px 12px rgba(0,0,0,.1);
  --shadow-hover: 0 6px 24px rgba(110,45,142,.18);
  --transition:   .2s ease;
  --max-w:        1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}
.btn-primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(110,45,142,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--purple);
  transform: translateY(-1px);
}

/* ── Header / Nav ── */
header {
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; display: block; }
.logo:hover { opacity: .85; }

nav { display: flex; gap: 28px; align-items: center; }

nav a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
nav a:hover,
nav a.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--dark);
  background-image:
    linear-gradient(160deg, #1c1c2e 0%, #2d1040 50%, #1a0a2e 100%);
  overflow: hidden;
  padding: 110px 0 90px;
  text-align: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/bg.png');
  background-repeat: repeat;
  opacity: .06;
  pointer-events: none;
}

/* Decorative circles */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,45,142,.35) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 span { color: #c084fc; }

.hero p {
  font-size: 1.05rem;
  font-weight: 300;
  opacity: .85;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Section Shared ── */
section { padding: 72px 0; }

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 48px;
  max-width: 540px;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Feature Cards ── */
.features { background: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 24px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--purple-light);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.feature-icon svg { width: 32px; height: 32px; fill: var(--purple); }

.feature-card h3 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ── About Band ── */
.about-band {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 { font-size: 1.6rem; margin-bottom: 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 12px; }
.about-text .btn { margin-top: 8px; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
}
.stat-box .num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box .label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; }

/* ── Topics ── */
.topics { background: var(--white); }

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.topic-card:hover {
  box-shadow: var(--shadow);
  border-color: #c9a8e0;
}

.topic-card .t-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.topic-card .t-icon svg { width: 22px; height: 22px; fill: var(--purple); }

.topic-card h4 { font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.topic-card p { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-mid) 100%);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { font-size: 2rem; margin-bottom: 14px; }
.cta-band p { font-size: 1rem; opacity: .85; margin-bottom: 32px; }

/* ── Footer ── */
footer {
  background: #18182a;
  color: rgba(255,255,255,.7);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 14px; display: block; }
.footer-brand .logo img { height: 34px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 260px; }

.footer-col h5 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .82rem; }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.social-links a:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}
.social-links a svg { width: 16px; height: 16px; fill: currentColor; }

/* ── Inner Page Hero ── */
.page-hero {
  background: linear-gradient(160deg, #1c1c2e 0%, #2d1040 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/bg.png');
  background-repeat: repeat;
  opacity: .06;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-hero p { opacity: .8; font-size: .95rem; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 14px 0;
  font-size: .82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--purple); }
.breadcrumb span { margin: 0 6px; }

/* ── Content Pages ── */
.content-page { padding: 56px 0 80px; }

.content-page .prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.content-page .prose h2:first-child { border-top: none; margin-top: 0; }
.content-page .prose p { margin-bottom: 14px; color: var(--text-muted); line-height: 1.8; }
.content-page .prose ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.content-page .prose ul li { margin-bottom: 6px; }
.content-page .prose a { color: var(--purple); text-decoration: underline; }
.content-page .prose strong { color: var(--text); }

.prose-header { margin-bottom: 40px; padding-bottom: 20px; border-bottom: 2px solid var(--purple-light); }
.prose-header .updated { font-size: .82rem; color: var(--text-muted); margin-top: 6px; }

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 { font-size: 1.1rem; margin-bottom: 20px; }
.contact-info p { font-size: .9rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.info-item .i-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-item .i-icon svg { width: 20px; height: 20px; fill: var(--purple); }
.info-item h4 { font-size: .85rem; font-weight: 600; margin-bottom: 2px; }
.info-item p { font-size: .85rem; color: var(--text-muted); margin: 0; }

.contact-form { background: var(--bg-light); border: 1px solid var(--border); border-radius: 12px; padding: 40px; }
.contact-form h3 { font-size: 1.15rem; margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: .88rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(110,45,142,.12);
}
textarea { min-height: 130px; resize: vertical; }

/* ── Sitemap Page ── */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.sitemap-section h3 {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--purple);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--purple-light);
}
.sitemap-section ul li { margin-bottom: 8px; }
.sitemap-section ul li a {
  font-size: .88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition), gap var(--transition);
}
.sitemap-section ul li a::before {
  content: '›';
  color: var(--purple);
  font-size: 1rem;
}
.sitemap-section ul li a:hover { color: var(--purple); gap: 12px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .about-band .container { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  nav { display: none; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,.1); padding: 12px 0; }
  nav.open { display: flex; }
  nav a { padding: 12px 24px; border-bottom: none; }
  .nav-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .hero { padding: 72px 0 60px; }
}
