/* Home-page specific styles */

/* Hero */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 80% -10%, color-mix(in oklab, var(--lavender) 28%, transparent), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, color-mix(in oklab, var(--lavender) 14%, transparent), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-tag .pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lavender-soft);
  color: var(--purple-ink);
  letter-spacing: 0.02em;
}
[data-theme="dark"] .hero-tag .pill { color: var(--lavender); }
.hero h1 {
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.98;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 60;
  color: var(--purple-deep);
}
[data-theme="dark"] .hero h1 em { color: var(--lavender); }
.hero-sub {
  font-size: 19px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.hero-trust-item svg { color: var(--purple); }

/* Hero device showcase — two phones (Welcome + Portfolio) overlapping */
.device-stage {
  position: relative;
  perspective: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 620px;
}
.device-glow {
  position: absolute;
  inset: 8% 8%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--lavender) 60%, transparent), transparent 80%);
  filter: blur(40px);
  z-index: 0;
}
.device-pair {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}
.phone {
  width: 256px;
  height: 540px;
  background: linear-gradient(180deg, #1A1825, #0B0A12);
  border-radius: 42px;
  padding: 8px;
  box-shadow:
    0 50px 100px -20px rgba(76, 29, 149, 0.32),
    0 30px 60px -30px rgba(15, 15, 26, 0.35),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  position: absolute;
}
.phone-front {
  z-index: 2;
  transform: translateX(-72px) translateY(0) rotate(-3deg);
}
.phone-back {
  z-index: 1;
  transform: translateX(72px) translateY(28px) rotate(4deg) scale(0.95);
  opacity: 0.94;
  filter: brightness(0.96);
}
.phone-screen {
  width: 100%; height: 100%;
  background: #0F0F1A;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}
.phone-screen-light {
  background: #F4EEE3;
  color: #1B1719;
}
.phone-screen-welcome {
  background: #FFFFFF;
  color: #1B1719;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}
.phone-status {
  position: absolute; top: 0; left: 0; right: 0;
  height: 50px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 22px;
  font-size: 13px; font-weight: 600; color: #fff;
  z-index: 4;
  font-family: -apple-system, "SF Pro Display", "Inter", sans-serif;
}
.phone-status .icons { display: flex; gap: 5px; align-items: center; }
.phone-status-light {
  position: absolute; top: 0; left: 0; right: 0;
  height: 50px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 22px;
  font-size: 13px; font-weight: 600; color: #1B1719;
  z-index: 4;
  font-family: -apple-system, "SF Pro Display", "Inter", sans-serif;
}
.phone-status-light .icons { display: flex; gap: 5px; align-items: center; }

/* Welcome screen content */
.welcome {
  height: 100%;
  padding: 60px 22px 22px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
}
.welcome-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.welcome-mark {
  width: 232px;
  height: auto;
  margin-bottom: -18px;
  filter: drop-shadow(0 20px 40px rgba(124, 58, 237, 0.3));
}
.welcome-headline {
  font-family: "Newsreader", Georgia, serif;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #1B1719;
  font-weight: 400;
  margin-top: 0;
  font-variation-settings: "opsz" 60;
}
.welcome-sub {
  font-size: 13px;
  color: #6B6168;
  line-height: 1.45;
  max-width: 220px;
  margin-top: 12px;
}
.welcome-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.welcome-btn-primary {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  background: #1B1719;
  color: #F6F3EE;
  border: none;
  font-family: inherit;
}
.welcome-btn-ghost {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: #1B1719;
  border: none;
  font-family: inherit;
}

/* Portfolio screen content */
.port {
  height: 100%;
  padding: 56px 16px 16px;
  font-family: var(--font-sans);
  overflow-y: auto;
  font-size: 13px;
}
.port::-webkit-scrollbar { display: none; }
.port-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #1B1719;
  margin: 0 4px 12px;
  font-variation-settings: "opsz" 60;
}
.t-eyebrow {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B6168;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.port-card {
  background: #FFFFFF;
  border: 1px solid #E6E0D4;
  border-radius: 14px;
  padding: 14px;
}
.port-total {
  font-family: "Newsreader", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-top: 4px;
  line-height: 1;
  color: #1B1719;
}
.port-delta-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}
.chip-pos {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  background: #E5EFE9;
  color: #2D6A4F;
}
.port-since {
  font-size: 10.5px;
  color: #6B6168;
}
.port-months {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 8.5px;
  color: #9B9098;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.port-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.port-stat {
  background: #FFFFFF;
  border: 1px solid #E6E0D4;
  border-radius: 10px;
  padding: 10px;
}
.port-stat-val {
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
  color: #1B1719;
  font-feature-settings: "tnum";
}
.port-section {
  margin-top: 18px;
  margin-bottom: 8px;
  display: block;
}
.port-list {
  background: #FFFFFF;
  border: 1px solid #E6E0D4;
  border-radius: 12px;
  overflow: hidden;
}
.port-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #E6E0D4;
}
.port-row:last-child { border-bottom: none; }
.port-thumb {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  font-family: "Newsreader", Georgia, serif;
}
.port-info { flex: 1; min-width: 0; }
.port-name { font-size: 12px; font-weight: 500; color: #1B1719; }
.port-meta { font-size: 9.5px; color: #6B6168; margin-top: 1px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.port-amounts { text-align: right; }
.port-val { font-size: 12px; font-weight: 500; color: #1B1719; font-feature-settings: "tnum"; }
.port-pl-pos { font-size: 9.5px; color: #2D6A4F; margin-top: 1px; font-feature-settings: "tnum"; }
.port-pl-neg { font-size: 9.5px; color: #B23A2C; margin-top: 1px; font-feature-settings: "tnum"; }
.port-tx {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #E6E0D4;
}
.port-tx:last-child { border-bottom: none; }
.port-tx-info { flex: 1; min-width: 0; }
.port-tx-label { font-size: 11px; color: #1B1719; }
.port-tx-date { font-size: 9.5px; color: #9B9098; margin-top: 1px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.port-tx-amt { font-size: 11px; font-weight: 500; color: #1B1719; font-feature-settings: "tnum"; }
.port-tx-amt-pos { font-size: 11px; font-weight: 500; color: #2D6A4F; font-feature-settings: "tnum"; }

/* App UI inside phone */
.app {
  padding: 60px 18px 18px;
  height: 100%;
  background: linear-gradient(180deg, #0F0F1A 0%, #15131F 100%);
  color: #F4F2FA;
  display: flex; flex-direction: column;
  font-family: var(--font-sans);
}
.app-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 18px;
}
.app-greet { font-size: 12px; color: #8B8B9E; }
.app-name {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-top: 2px;
  color: #fff;
}
.app-avatar {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #C4B5FD, #7C3AED);
}

.app-balance {
  background: linear-gradient(135deg, color-mix(in oklab, #7C3AED 50%, #15131F), #1A1828);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(196, 181, 253, 0.18);
}
.app-balance .lbl { font-size: 11px; color: #C4B5FD; letter-spacing: 0.1em; text-transform: uppercase; }
.app-balance .val {
  font-family: var(--font-serif);
  font-size: 30px;
  margin-top: 8px;
  letter-spacing: -0.02em;
  color: #fff;
}
.app-balance .delta {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: #86EFAC;
}

.app-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6E6982;
  margin: 14px 4px 10px;
  display: flex; justify-content: space-between;
}
.app-section-title span:last-child { color: #C4B5FD; }

.venture {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.venture-thumb {
  width: 40px; height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: #fff;
}
.venture-info { flex: 1; min-width: 0; }
.venture-name { font-size: 13px; font-weight: 500; color: #F4F2FA; }
.venture-meta { font-size: 11px; color: #6E6982; margin-top: 2px; }
.venture-score {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #C4B5FD;
  font-weight: 500;
}

/* What is - 3up */
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.three-up .card {
  padding: 32px;
  display: flex; flex-direction: column;
}
.three-up .icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--lavender-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--purple-deep);
}
[data-theme="dark"] .three-up .icon { color: var(--lavender); }
.three-up h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.three-up p { color: var(--ink-3); font-size: 15px; line-height: 1.6; }

/* Section heads */
.section-head {
  max-width: 720px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.04;
  margin: 14px 0 18px;
}
.section-head p {
  font-size: 18px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 600px;
}

/* How it works */
.steps {
  margin-top: 56px;
  display: grid;
  gap: 14px;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr 320px;
  gap: 32px;
  padding: 36px 0;
  align-items: center;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--font-serif);
  font-size: 56px;
  color: var(--lavender-deep);
  line-height: 1;
  font-variation-settings: "opsz" 60;
}
.step-body h3 {
  font-size: 26px;
  margin-bottom: 8px;
}
.step-body p { color: var(--ink-3); font-size: 15.5px; max-width: 540px; }
.step-illus {
  height: 160px;
  border-radius: var(--radius);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Diligence — featured */
.diligence {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
}
[data-theme="dark"] .diligence { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%); }
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.pillar {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
}
.pillar h3 {
  font-size: 22px;
  margin: 22px 0 10px;
}
.pillar p { font-size: 14.5px; color: var(--ink-3); line-height: 1.6; }
.pillar .tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-ink);
  font-weight: 500;
}
[data-theme="dark"] .pillar .tag { color: var(--lavender); }
.pillar .glyph {
  position: absolute;
  top: 24px; right: 24px;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--lavender-soft);
  color: var(--purple-deep);
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .pillar .glyph { color: var(--lavender); }

.diligence-note {
  margin-top: 36px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}
.diligence-note svg { flex-shrink: 0; color: var(--purple); margin-top: 2px; }

/* Why Qolony */
.why-table {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.why-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.why-row:last-child { border-bottom: none; }
.why-row.head {
  background: var(--bg-tint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  font-weight: 500;
}
.why-row.head > div { padding: 18px 24px; }
.why-row.head .featured { color: var(--purple-ink); font-weight: 600; }
[data-theme="dark"] .why-row.head .featured { color: var(--lavender); }
.why-cell { padding: 22px 24px; font-size: 14.5px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; line-height: 1.5; }
.why-cell.label { font-weight: 500; color: var(--ink); }
.why-cell.featured {
  background: color-mix(in oklab, var(--lavender-soft) 80%, transparent);
  color: var(--purple-ink);
  font-weight: 500;
}
[data-theme="dark"] .why-cell.featured {
  background: color-mix(in oklab, var(--purple) 12%, transparent);
  color: var(--lavender);
}
.why-cell.muted { color: var(--ink-4); }
.why-cell svg.check { color: var(--purple); flex-shrink: 0; }
.why-cell svg.x { color: var(--ink-4); flex-shrink: 0; }

/* FAQ */
.faq-wrap {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  gap: 24px;
}
.faq-q:hover { color: var(--purple-deep); }
[data-theme="dark"] .faq-q:hover { color: var(--lavender); }
.faq-q .icon {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--bg-tint);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 200ms ease, background 200ms ease;
}
.faq-item.open .faq-q .icon {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--bg);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a-inner {
  overflow: hidden;
}
.faq-a-inner > div {
  padding: 0 4px 24px;
  font-size: 15.5px;
  color: var(--ink-3);
  line-height: 1.65;
  max-width: 600px;
}

/* Final CTA */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, color-mix(in oklab, var(--lavender) 22%, var(--bg)) 0%, var(--bg) 50%, color-mix(in oklab, var(--lavender) 18%, var(--bg)) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(96px, 14vw, 160px) 0;
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  margin-bottom: 24px;
  max-width: 12ch;
  margin-left: auto;
  margin-right: auto;
}
.final-cta h2 em {
  font-style: italic;
  color: var(--purple-deep);
  font-variation-settings: "opsz" 60;
}
[data-theme="dark"] .final-cta h2 em { color: var(--lavender); }
.final-cta p {
  font-size: 19px;
  color: var(--ink-3);
  max-width: 560px;
  margin: 0 auto 36px;
}
.final-cta-row {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .device-stage { height: 540px; }
  .three-up { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 60px 1fr; }
  .step-illus { display: none; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .why-row { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 540px) {
  .pillars { grid-template-columns: 1fr; }
  .why-row { grid-template-columns: 1fr; }
  .why-cell { padding: 14px 18px; }
  .why-row.head { display: none; }
  .why-cell.label { background: var(--bg-tint); padding-top: 14px; padding-bottom: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); }
  /* On narrow phones hide the back phone, center the front one */
  .phone-back { display: none; }
  .phone-front { transform: rotate(-2deg); width: 240px; height: 510px; }
}
