/* ============================================================
   SUBLIM — Support website
   ============================================================ */

:root {
  --bg-base: #FBFBFD;

  --ink: #29272F;
  --ink-soft: #6E6B78;
  --ink-faint: #9B98A6;

  --lavender: #C9BBF5;
  --powder-blue: #AAD1F2;
  --pale-cyan: #B4EBDF;
  --blush: #F4C3D5;
  --peach: #FBD6B4;
  --cream: #FBF2E4;
  --lilac: #D9C6F2;

  --glass-border: rgba(255, 255, 255, 0.55);
  --hairline: rgba(41, 39, 47, 0.09);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Manrope", "Inter", sans-serif;
  --font-body: "Inter", "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid #6E5DE7;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- Ambient background ---------------- */

.ambient-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.blob-a {
  width: 46vw;
  height: 46vw;
  top: -12vw;
  left: -10vw;
  background: radial-gradient(circle at 30% 30%, var(--lavender), transparent 70%);
  animation: drift-a 46s ease-in-out infinite;
}

.blob-b {
  width: 40vw;
  height: 40vw;
  top: 8vw;
  right: -14vw;
  background: radial-gradient(circle at 60% 40%, var(--blush), transparent 70%);
  animation: drift-b 52s ease-in-out infinite;
}

.blob-c {
  width: 50vw;
  height: 50vw;
  bottom: -18vw;
  left: 20vw;
  background: radial-gradient(circle at 50% 50%, var(--pale-cyan), transparent 70%);
  animation: drift-c 60s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, 3vw) scale(1.06); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3vw, 4vw) scale(1.08); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3vw, -3vw) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* ---------------- Nav ---------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nav-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.nav-links a {
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-btn:hover { color: var(--ink); }

.lang-btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(41, 39, 47, 0.12);
}

/* ---------------- Layout helpers ---------------- */

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 28px;
}

.section-inner-narrow {
  max-width: 760px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 88px 28px 110px;
  display: flex;
  justify-content: center;
}

.hero-inner {
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(201, 187, 245, 0.35), rgba(180, 235, 223, 0.18) 55%, transparent 75%);
  filter: blur(30px);
  z-index: -1;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: 0.14em;
  margin: 0 0 22px;
  background: linear-gradient(90deg, #6857D6 0%, #C24C86 45%, #E8965A 80%, #F0B65E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--ink);
}

.hero-desc {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-glass {
  background: linear-gradient(135deg, rgba(201, 187, 245, 0.35), rgba(173, 209, 242, 0.28));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(110, 93, 199, 0.10);
}

.btn-glass-alt {
  background: linear-gradient(135deg, rgba(244, 195, 213, 0.30), rgba(251, 214, 180, 0.26));
}

.btn-glass:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(110, 93, 199, 0.16);
}

/* ---------------- How it works ---------------- */

.how {
  position: relative;
}

.how::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 20% 10%, rgba(217, 198, 242, 0.30), transparent 60%),
              radial-gradient(ellipse 50% 35% at 85% 60%, rgba(180, 235, 223, 0.25), transparent 60%);
  z-index: -1;
}

.how-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.how-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.how-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(41, 39, 47, 0.07);
}

.how-card-inner {
  padding: 36px 34px;
}

.how-card-create {
  background: linear-gradient(120deg, rgba(217, 198, 242, 0.45), rgba(180, 235, 223, 0.32));
}

.how-card-create .how-card-inner {
  padding: 46px 44px;
}

.how-card-create h3 {
  font-size: clamp(24px, 3vw, 30px);
}

.how-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how-row .how-card:nth-child(1) {
  background: linear-gradient(120deg, rgba(173, 209, 242, 0.35), rgba(217, 198, 242, 0.22));
}
.how-row .how-card:nth-child(2) {
  background: linear-gradient(120deg, rgba(244, 195, 213, 0.35), rgba(251, 214, 180, 0.24));
}
.how-row .how-card:nth-child(3) {
  background: linear-gradient(120deg, rgba(251, 214, 180, 0.35), rgba(217, 198, 242, 0.24));
}

.how-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  margin: 0 0 6px;
}

.how-card-sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.how-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how-card-list li {
  font-size: 14.5px;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.how-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

/* ---------------- Support ---------------- */

.support {
  position: relative;
}

.support::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 40% at 80% 20%, rgba(173, 209, 242, 0.28), transparent 60%),
              radial-gradient(ellipse 50% 35% at 15% 80%, rgba(217, 198, 242, 0.24), transparent 60%);
  z-index: -1;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.support-item {
  padding: 36px 32px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.support-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 8px;
}

.support-item p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ---------------- FAQ ---------------- */

.faq-list {
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding: 22px 4px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-weight: 300;
  font-size: 22px;
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 16px 0 4px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  max-width: 620px;
}

/* ---------------- Contact ---------------- */

.contact {
  text-align: center;
}

.contact h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 10px;
}

.contact p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 28px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 22px);
  padding: 18px 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(201, 187, 245, 0.4), rgba(180, 235, 223, 0.3));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 22px rgba(110, 93, 199, 0.12);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(110, 93, 199, 0.18);
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 28px 60px;
}

.footer-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.footer-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.85;
}

.footer-note,
.footer-privacy,
.footer-copy {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
  line-height: 1.6;
}

.footer-note { max-width: 480px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .how-row {
    grid-template-columns: 1fr;
  }
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 14px 18px;
  }
  .nav-links {
    display: none;
  }
  .section-inner {
    padding: 72px 20px;
  }
  .hero {
    padding: 64px 20px 80px;
  }
  .hero-logo-wrap {
    width: 168px;
    height: 168px;
  }
  .how-card-inner {
    padding: 28px 26px;
  }
  .how-card-create .how-card-inner {
    padding: 34px 28px;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
  }
}
.footer-privacy a { color: inherit; text-decoration: none; }
.footer-privacy a:hover { text-decoration: underline; }
