/* ============================================================
   Create Space — createspace.in
   Design system lifted from the Create Space app (Editorial Calm
   theme): brand rose #B22D61, teal #00CED1, Inter, white surfaces,
   16px hairline cards. One family with the product.
   ============================================================ */

:root {
  /* Brand */
  --primary: #B22D61;          /* Create Space Rose */
  --primary-hover: #9a2653;
  --primary-foreground: #ffffff;
  --secondary: #00CED1;        /* Create Space Teal */
  --secondary-deep: #0a9ea1;

  /* Surfaces (Editorial Calm) */
  --background: #ffffff;
  --surface-soft: #FBF8F9;     /* faint rose-tinted section band */
  --surface-muted: #F8F9FA;
  --foreground: #1A1A1A;
  --muted-foreground: #555555;
  --border: #EDEDED;
  --border-rose: rgba(178, 45, 97, 0.12);

  /* Tint washes */
  --rose-wash: rgba(178, 45, 97, 0.05);
  --teal-wash: rgba(0, 206, 209, 0.08);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --max-width: 1120px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-height: 68px;
  --shadow-soft: 0 10px 30px rgba(178, 45, 97, 0.06);
  --shadow-card: 0 1px 2px rgba(26, 26, 26, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); }

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* safety net against any sub-pixel overflow on small screens */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(178, 45, 97, 0.18); color: var(--foreground); }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--surface-soft); }
.section--rose {
  background: linear-gradient(180deg, #fff 0%, var(--rose-wash) 100%);
}
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 18px;
}
.section-lead {
  font-size: 1.12rem; color: var(--muted-foreground);
  max-width: 640px; margin-bottom: 8px;
}
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.98rem; font-weight: 600; padding: 13px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 12px 34px rgba(178,45,97,.22); }
.btn-ghost { background: #fff; color: var(--foreground); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1eb257; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-height);
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand span b { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.95rem; color: var(--muted-foreground); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--foreground); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--foreground); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; background: radial-gradient(1200px 500px at 70% -10%, var(--teal-wash), transparent 60%), radial-gradient(900px 460px at 0% 0%, var(--rose-wash), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--primary); }
.hero-sub { font-size: 1.2rem; color: var(--muted-foreground); margin: 22px 0 30px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 0.9rem; color: var(--muted-foreground); }

/* Hero visual — a stylized "game film" card */
.hero-visual { position: relative; }
.filmcard {
  background: #fff; border: 1px solid var(--border-rose); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); padding: 26px; position: relative;
}
.filmcard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.filmcard-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 4px var(--teal-wash); }
.filmcard-title { font-size: 0.82rem; font-weight: 600; color: var(--muted-foreground); letter-spacing: .04em; text-transform: uppercase; }
.metric { margin-bottom: 18px; }
.metric:last-child { margin-bottom: 0; }
.metric-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.metric-label { font-size: 0.92rem; font-weight: 500; }
.metric-val { font-size: 0.92rem; font-weight: 700; }
.metric-val.good { color: var(--secondary-deep); }
.metric-val.warn { color: var(--primary); }
.bar { height: 8px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; }
.bar .fill-rose { background: linear-gradient(90deg, var(--primary), #d3568a); }
.bar .fill-teal { background: linear-gradient(90deg, var(--secondary-deep), var(--secondary)); }
.filmcard-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--muted-foreground); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filmcard-foot .chip { background: var(--rose-wash); color: var(--primary); font-weight: 600; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; }

/* ---- Proof strip ---- */
.proofstrip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.proofstrip .container { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; padding-top: 22px; padding-bottom: 22px; }
.proof-item { font-size: 0.92rem; color: var(--muted-foreground); display: flex; align-items: center; gap: 9px; }
.proof-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); flex: none; }

/* ---- Feature cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 44px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--border-rose); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--rose-wash); color: var(--primary); margin-bottom: 18px; font-size: 1.35rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted-foreground); font-size: 0.98rem; }

/* ---- Privacy band ---- */
.privacy { background: linear-gradient(135deg, #1A1A1A 0%, #2a1a20 100%); color: #fff; border-radius: var(--radius-lg); padding: 54px 48px; text-align: center; }
.privacy .eyebrow { color: var(--secondary); }
.privacy h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.privacy p { color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto 10px; font-size: 1.08rem; }
.privacy .store-line { font-weight: 700; color: #fff; font-size: 1.25rem; margin-top: 18px; }

/* ---- Pillars ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.pillar { padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--primary); }
.pillar .num { font-size: 0.82rem; font-weight: 700; color: var(--secondary-deep); letter-spacing: .1em; }
.pillar h4 { font-size: 1.12rem; margin: 8px 0 8px; }
.pillar p { color: var(--muted-foreground); font-size: 0.96rem; }

/* ---- Measures list ---- */
.measures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; margin-top: 36px; }
.measure { display: flex; gap: 14px; }
.measure .m-mark { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--teal-wash); color: var(--secondary-deep); display: grid; place-items: center; font-weight: 700; }
.measure b { display: block; margin-bottom: 3px; }
.measure p { color: var(--muted-foreground); font-size: 0.96rem; }

/* ---- Work with Sri ---- */
.sri-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 54px; align-items: start; }
.sri-portrait {
  border-radius: var(--radius-lg); background: var(--surface-soft);
  border: 1px solid var(--border-rose); padding: 34px; text-align: center;
}
.sri-portrait .diamond { font-size: 2.4rem; }
.sri-portrait .name { font-size: 1.35rem; font-weight: 700; margin-top: 12px; }
.sri-portrait .role { color: var(--muted-foreground); font-size: 0.96rem; margin-top: 4px; }
.sri-quote { margin-top: 22px; font-style: italic; color: var(--foreground); font-size: 1.02rem; line-height: 1.5; }
.sri-certs { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag { font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--rose-wash); color: var(--primary); }
.svc-list { display: grid; gap: 16px; margin-top: 8px; }
.svc { display: flex; gap: 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.svc .s-mark { flex: none; color: var(--primary); font-size: 1.25rem; }
.svc b { display: block; margin-bottom: 3px; }
.svc p { color: var(--muted-foreground); font-size: 0.96rem; }
.credibility { margin-top: 26px; padding: 22px 24px; background: var(--surface-muted); border-radius: var(--radius); font-size: 0.98rem; color: var(--muted-foreground); }
.credibility b { color: var(--foreground); }

/* ---- Testimonials ---- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.quote { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; position: relative; }
.quote .mark { color: var(--primary); font-size: 2.6rem; line-height: 0.6; font-family: Georgia, serif; opacity: 0.25; }
.quote p { font-size: 1rem; line-height: 1.55; margin: 6px 0 18px; }
.quote .who { font-weight: 700; font-size: 0.95rem; }
.quote .who span { display: block; font-weight: 500; color: var(--muted-foreground); font-size: 0.86rem; margin-top: 2px; }

/* ---- About beliefs ---- */
.beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.belief { padding: 26px 24px; border-radius: var(--radius); border: 1px dashed var(--border-rose); background: var(--rose-wash); }
.belief b { display: block; margin-bottom: 8px; font-size: 1.05rem; }
.belief p { color: var(--muted-foreground); font-size: 0.96rem; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 40px auto 0; display: grid; gap: 14px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 0 22px; transition: border-color .15s, box-shadow .2s; }
.faq details[open] { border-color: var(--border-rose); box-shadow: var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.5rem; font-weight: 400; line-height: 1; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted-foreground); padding: 0 0 20px; margin: 0; font-size: 0.98rem; line-height: 1.6; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: start; }
.contact-methods { display: grid; gap: 18px; }
.cmethod { display: flex; gap: 14px; align-items: flex-start; }
.cmethod .c-mark { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--rose-wash); color: var(--primary); display: grid; place-items: center; font-size: 1.15rem; }
.cmethod b { display: block; }
.cmethod a, .cmethod span { color: var(--muted-foreground); font-size: 0.96rem; }
.cmethod a:hover { color: var(--primary); }
.contact-socials { margin-top: 26px; display: flex; gap: 12px; }
.contact-socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted-foreground); font-weight: 600; font-size: 0.85rem; transition: all .15s; }
.contact-socials a:hover { border-color: var(--primary); color: var(--primary); }

form.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-card); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 0.98rem;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--foreground);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--rose-wash);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.84rem; color: var(--muted-foreground); margin-top: 12px; }
.form-success { display: none; padding: 16px 18px; border-radius: 10px; background: var(--teal-wash); color: var(--secondary-deep); font-weight: 600; margin-bottom: 18px; }

/* ---- Footer ---- */
.site-footer { background: #131313; color: rgba(255,255,255,0.7); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-tag { font-size: 0.94rem; max-width: 320px; }
.footer-col h5 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); font-size: 0.94rem; margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.86rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .sri-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: min(100%, 440px); margin: 0 auto; width: 100%; }
  .filmcard { padding: 22px; }
  .cards, .pillars, .quotes, .beliefs { grid-template-columns: 1fr; }
  .measures { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-height); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 18px; align-items: flex-start;
  }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
  .privacy { padding: 40px 26px; }
}
@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .nav-cta .btn-ghost { display: none; }
  .container { padding: 0 18px; }
  .nav-cta .btn-primary { padding: 9px 15px; font-size: 0.88rem; }
  .brand span { font-size: 1rem; }
  .brand img { width: 26px; height: 26px; }
  .proofstrip .container { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
