/* ============================================================
   SYNTHETICA: Main Stylesheet
   trysynthetica.com
   ============================================================ */

/* --- Google Fonts are loaded via <link> in each HTML file. */

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

:root {
  --bg:            #07070E;
  --surface:       #0F0F1A;
  --surface-2:     #161626;
  --border:        #1E1E35;
  --purple:        #7C3AED;
  --purple-light:  #9461FF;
  --blue:          #2563EB;
  --gradient:      linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  --text:          #E2E8F0;
  --text-muted:    #94A3B8;
  --text-dim:      #64748B;
  --amber:         #D97706;
  --radius:        12px;
  --radius-sm:     8px;
  --nav-h:         68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.2;
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Layout -------------------------------------------------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section     { padding: 88px 0; }
.section--sm { padding: 60px 0; }

.section--alt {
  background: var(--surface);
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* --- Header & Nav ------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 7, 14, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

nav { width: 100%; }

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

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--purple-light);                /* fallback */
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: none;
}

/* Lock header nav logo to 34px regardless of cascade or intrinsic image size */
header .nav-logo-img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  min-width: 0 !important;
  display: block;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 11px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px 10px;
  color: var(--text-muted);
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s;
}

.nav-toggle:hover { border-color: var(--purple); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* --- Footer -------------------------------------------------- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 270px;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 13px; color: var(--text-dim); }

.footer-bottom a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.87;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: rgba(124, 58, 237, 0.4);
}

/* --- Section Headers ---------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* --- Hero (Home) --------------------------------------------- */
.hero {
  position: relative;
  padding: 104px 0 88px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(124, 58, 237, 0.11) 0%,
    rgba(37, 99, 235, 0.05) 45%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.09);
  border: 1px solid rgba(124, 58, 237, 0.22);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.07;
  margin-bottom: 26px;
  background: linear-gradient(160deg, #ffffff 35%, #8ca0be 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

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

/* --- Product Cards ------------------------------------------ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: rgba(124, 58, 237, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
}

.product-img {
  width: 100%;
  display: block;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--border);
}

.preview-note {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

.product-card-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
}

.tag-type {
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.tag-placeholder {
  color: var(--amber);
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.18);
}

.product-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
}

.product-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.price-note {
  font-size: 12px;
  color: var(--amber);
  font-weight: 500;
}

/* --- How It Works ------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
}

.step { display: flex; flex-direction: column; gap: 16px; }

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
}

.step h3 { font-size: 18px; font-weight: 600; color: var(--text); }

.step p { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* --- Contact Strip ------------------------------------------ */
.contact-strip { text-align: center; }

.contact-strip > .container > p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 14px;
}

.email-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.15s;
}

.email-link:hover { opacity: 0.72; }

/* --- Page Hero (inner pages) -------------------------------- */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.65;
}

/* --- Pricing Page ------------------------------------------- */
.pricing-note {
  margin-top: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.65;
}

/* --- Contact Page ------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.contact-detail-value {
  font-size: 17px;
  font-weight: 600;
}

.contact-detail-value a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Forms -------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

input, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: var(--text-dim); }

input:focus, textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

textarea {
  resize: vertical;
  min-height: 148px;
  line-height: 1.65;
}

/* --- Legal Pages -------------------------------------------- */
.legal-layout { max-width: 760px; }

.legal-meta {
  font-size: 13px;
  color: var(--text-dim);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}

.legal-layout h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 44px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.legal-layout p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-layout ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-layout li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 5px;
}

.legal-layout a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- About Section ------------------------------------------ */
.about-section { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 12px 0 20px;
}

.about-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-contact {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-muted);
}

.about-contact a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.about-stat:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.about-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about-stat-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

/* --- FAQ Section -------------------------------------------- */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  list-style: none;
  gap: 16px;
  transition: background 0.15s;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--purple-light);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}

details[open] > .faq-question::after {
  transform: rotate(45deg);
}

details[open] > .faq-question,
.faq-question:hover {
  background: var(--surface-2);
}

.faq-answer {
  padding: 4px 24px 22px;
  background: var(--surface);
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-answer a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Product Detail (pricing page) -------------------------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  margin-bottom: 48px;
}

.product-detail-image { position: sticky; top: calc(var(--nav-h) + 24px); }

.product-detail-img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-detail-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}

.product-detail-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Specs blocks */
.product-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 4px;
}

.spec-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.spec-block:last-child { border-bottom: none; }

.spec-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  padding-top: 1px;
}

.spec-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.spec-value {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.spec-value a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 920px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 2px;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 11px 14px;
    font-size: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 760px) {
  .section    { padding: 64px 0; }
  .section--sm { padding: 48px 0; }
  .hero       { padding: 72px 0 64px; }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .steps-grid      { grid-template-columns: 1fr; gap: 36px; }
  .contact-layout  { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid     { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand    { grid-column: auto; }
  .footer-bottom   { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* About section */
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-details { padding: 24px; }

  /* Product detail */
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-detail-image { position: static; }
}

@media (max-width: 480px) {
  .hero h1       { letter-spacing: -1px; }
  .hero-cta      { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; text-align: center; }
}

/* --- 390 px (smallest phones) ------------------------------- */
@media (max-width: 390px) {
  :root { --nav-h: 60px; }

  .container { padding: 0 16px; }

  .hero        { padding: 56px 0 48px; }
  .hero h1     { font-size: 36px; letter-spacing: -0.5px; }
  .hero-lead   { font-size: 16px; }
  .hero-badge  { font-size: 11px; }
  .hero-cta    { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; text-align: center; }

  .section     { padding: 52px 0; }
  .section--sm { padding: 40px 0; }

  .section-header h2  { font-size: 24px; }
  .section-header p   { font-size: 15px; }

  .product-card  { padding: 20px; }
  .price-amount  { font-size: 26px; }

  .about-details { padding: 20px; }
  .about-stat-value { font-size: 15px; }

  .faq-question  { font-size: 14px; padding: 16px 18px; }
  .faq-answer    { padding: 2px 18px 18px; }

  .product-specs .spec-block { padding: 14px 14px; }

  .steps-grid    { gap: 28px; }
  .step h3       { font-size: 16px; }

  .footer-grid   { gap: 28px; }
  .footer-bottom { gap: 6px; }
  .footer-bottom p { font-size: 12px; }
}
