/* ===== Design Tokens ===== */
:root {
  --bg-primary:   #FFFFFF;
  --bg-alt:       #F4F5F7;
  --bg-inverse:   #0C0C0C;

  --text-primary:  #111111;
  --text-muted:    rgba(17, 17, 17, 0.52);
  --text-dim:      rgba(17, 17, 17, 0.30);
  --text-inverse:  #FFFFFF;
  --text-inv-muted: rgba(255, 255, 255, 0.58);

  --accent:        #5B8DEF;
  --accent-light:  #EEF2FD;

  --border:     rgba(0, 0, 0, 0.10);
  --border-inv: rgba(255, 255, 255, 0.14);

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
  --shadow-phone: 0 30px 80px rgba(0,0,0,0.20);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --transition: 0.22s ease;
  --radius: 6px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body:not(.loaded) { overflow: hidden; }

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

/* ===== Page Loader ===== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--text-primary);
  display: block;
  opacity: 0;
  transform: translateY(14px);
}

/* ===== Layout ===== */
.container {
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
}

section { padding-block: 7rem; }

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); font-weight: 400; letter-spacing: -0.025em; }
h1 em { font-style: italic; }

h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); font-weight: 400; letter-spacing: -0.02em; }
h2 em { font-style: italic; }

h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }

.section-label {
  display: block;
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.section-title {
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.03rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
}

/* Inverse variants */
.section-inverse .section-label  { color: var(--text-inv-muted); }
.section-inverse .section-title  { color: var(--text-inverse); }
.section-inverse .section-lead   { color: var(--text-inv-muted); }
.section-inverse h3              { color: var(--text-inverse); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1.5px solid var(--text-primary);
  background: var(--text-primary);
  color: var(--bg-primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn:hover {
  background: transparent;
  color: var(--text-primary);
}

.btn-inverse {
  border-color: var(--text-inverse);
  background: var(--text-inverse);
  color: var(--bg-inverse);
}

.btn-inverse:hover {
  background: transparent;
  color: var(--text-inverse);
}

/* ===== Header ===== */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-inverse);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.nav-logo img { height: 52px; width: auto; filter: brightness(0) invert(1); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-links a {
  color: var(--text-inv-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text-inverse); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--text-inverse);
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }

/* Nav actions (lang toggle + hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--text-inv-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.lang-btn:hover {
  color: var(--text-inverse);
  border-color: rgba(255,255,255,0.5);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-inverse);
  transition: all var(--transition);
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--bg-inverse);
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  padding: 1rem 0;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-inv-muted);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--text-inverse); }

.mobile-nav-lang { padding: 1rem 0 0.5rem; }

.lang-btn-mobile {
  background: none;
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--text-inv-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.lang-btn-mobile:hover {
  color: var(--text-inverse);
  border-color: rgba(255,255,255,0.5);
}

/* ===== Hero ===== */
#hero {
  background: var(--bg-primary);
  padding-block: 7rem 6rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyeline {
  display: block;
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  opacity: 0;
}

#hero h1 { margin-bottom: 1.5rem; opacity: 0; }

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  opacity: 0;
}

/* Store badges in hero */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
}

/* Phone mockup in hero */
.hero-phone {
  margin: 0;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== Phone Mockup ===== */
.phone-mockup {
  position: relative;
  border-radius: 40px;
  border: 8px solid #1a1c22;
  overflow: hidden;
  background: #15171B;
  box-shadow: var(--shadow-phone);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 5px;
  background: #1a1c22;
  border-radius: 10px;
  z-index: 10;
}

.phone-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-phone .phone-mockup { width: 300px; }

/* ===== Store Badges ===== */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}

.store-badge--coming {
  opacity: 0.55;
}

.store-badge-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.store-badge-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== Apps Section ===== */
#apps {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.section-intro { margin-bottom: 3.5rem; }

.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* App info column */
.app-header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.app-header-text {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
}

.app-platform {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.4rem;
}

.app-tagline {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.app-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0;
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feature-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.38rem;
}

.feature-item strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-body);
}

.feature-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Store badges below feature list */
.app-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Privacy / Support links */
.app-links {
  display: flex;
  gap: 1.5rem;
}

.app-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}

.app-link:hover {
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.3);
}

/* Screenshots column */
.app-screens {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  justify-content: center;
  position: sticky;
  top: 6rem;
}

.app-screens .phone-mockup { width: 210px; }
.app-screens .phone-mockup:nth-child(2) { margin-top: 3rem; }

/* ===== About / Philosophy ===== */
#about {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.process-header { max-width: 580px; margin-bottom: 4rem; }

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.philosophy-card {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  background: var(--bg-primary);
  transition: background var(--transition);
}

.philosophy-card:last-child { border-right: none; }
.philosophy-card:hover { background: var(--accent-light); }

.step-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
  letter-spacing: -0.02em;
}

.philosophy-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.philosophy-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ===== FAQ ===== */
#faq {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 5rem;
  align-items: start;
}

.faq-intro .section-title em { font-style: italic; }

.faq-intro-text {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin-top: 1rem;
}

.faq-list { display: flex; flex-direction: column; }

.faq-item { border-top: 1.5px solid var(--border); }
.faq-item:last-child { border-bottom: 1.5px solid var(--border); }

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.97rem;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--accent); }
.faq-item.is-open .faq-question { color: var(--accent); }

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform var(--transition), color var(--transition);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  display: none;
  padding: 0 0 1.5rem;
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
}

.faq-item.is-open .faq-answer { display: block; }

/* ===== Contact ===== */
#contact {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.75fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1.25rem; }

.contact-info > p {
  font-size: 0.95rem;
  color: var(--text-inv-muted);
  margin-bottom: 2.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.91rem;
  margin-bottom: 0.75rem;
  color: var(--text-inverse);
}

.contact-detail svg {
  width: 17px;
  height: 17px;
  color: var(--text-inv-muted);
  flex-shrink: 0;
}

.contact-detail a {
  color: var(--text-inverse);
  border-bottom: 1px solid var(--border-inv);
  transition: border-color var(--transition);
}

.contact-detail a:hover { border-bottom-color: var(--text-inverse); }

/* ===== Contact Form ===== */
.cf-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  margin-bottom: 2.5rem;
}

.cf-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cf-group--full { grid-column: 1 / -1; }

.cf-label {
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-inv-muted);
}

.cf-fields input,
.cf-fields textarea {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  color: var(--text-inverse);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0;
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}

.cf-fields input::placeholder,
.cf-fields textarea::placeholder { color: rgba(255, 255, 255, 0.25); }

.cf-fields input:focus,
.cf-fields textarea:focus { border-bottom-color: rgba(255, 255, 255, 0.65); }

.cf-fields input.is-invalid,
.cf-fields textarea.is-invalid { border-bottom-color: #e07878; }

.cf-fields textarea { min-height: 110px; resize: none; }

.form-feedback {
  display: none;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.form-feedback.success {
  display: block;
  color: var(--text-inv-muted);
  border-top: 1px solid var(--border-inv);
}

.form-feedback.error {
  display: block;
  color: #e07878;
  border-top: 1px solid rgba(224, 120, 120, 0.3);
}

.form-feedback.error a { color: inherit; text-decoration: underline; }

/* ===== Footer ===== */
footer {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  padding-block: 3rem;
  border-top: 1px solid var(--border-inv);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo img { height: 30px; filter: brightness(0) invert(1); opacity: 0.8; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.86rem;
  color: var(--text-inv-muted);
}

.footer-links a { color: var(--text-inv-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text-inverse); }

.footer-socials { display: flex; align-items: center; gap: 1.25rem; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-inv-muted);
  font-size: 0.86rem;
  transition: color var(--transition);
}

.footer-social:hover { color: var(--text-inverse); }
.footer-social svg { width: 15px; height: 15px; }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.22);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-inv);
  margin-top: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-card:nth-child(3) {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid var(--border);
  }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info { max-width: 540px; }

  .hero-inner { gap: 2.5rem; }

  .app-screens { position: static; }
}

@media (max-width: 768px) {
  section { padding-block: 4.5rem; }

  #hero { padding-block: 6rem 4rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-phone { justify-content: flex-start; }
  .hero-phone .phone-mockup { width: 240px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .app-showcase { grid-template-columns: 1fr; gap: 3rem; }
  .app-screens { justify-content: flex-start; }
  .app-screens .phone-mockup { width: 170px; }

  .philosophy-grid {
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .philosophy-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .philosophy-card:last-child { border-bottom: none; }
  .philosophy-card:nth-child(3) {
    grid-column: auto;
    border-top: none;
  }

  .faq-layout { grid-template-columns: 1fr; gap: 2.5rem; }

  .cf-fields { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  section { padding-block: 3.25rem; }
  #hero { padding-block: 5rem 3.5rem; }

  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.2rem; }

  .hero-phone { display: none; }

  .app-screens .phone-mockup:nth-child(2) { display: none; }
  .app-screens .phone-mockup { width: 200px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
