/* ===== Rift UI Design — Liquid Glass system ===== */

:root {
  --bg: #050308;
  --bg-soft: #0a0611;
  --purple-deep: #2a1152;
  --purple: #6d28d9;
  --purple-light: #9d5cff;
  --gold: #f5b700;
  --gold-soft: #f8d466;
  --text: #f5f2fb;
  --text-muted: #a79fc0;
  --text-faint: #766e8c;

  --glass-fill: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
  --glass-fill-strong: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03));
  --glass-border: rgba(255,255,255,0.14);
  --glass-border-gold: rgba(245,183,0,0.4);
  --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.3);
  --glass-blur: blur(22px) saturate(160%);

  --max-width: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: "Clash Display", "Satoshi", sans-serif; font-weight: 600; letter-spacing: -0.02em; }

/* ===== Ambient glow field (page-level, replaces flat dark bg) ===== */
.glow-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.glow-field::before {
  content: "";
  position: absolute;
  left: 50%; top: 62vh;
  width: 1400px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(157,92,255,0.55) 0%, rgba(245,183,0,0.28) 32%, rgba(42,17,82,0.12) 55%, transparent 72%);
  filter: blur(40px);
}
.glow-field::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 900px; height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(109,40,217,0.25), transparent 70%);
  filter: blur(60px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight);
}

.gradient-text { color: var(--gold-soft); }

/* ===== Buttons — pill, glass ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--gold) 0%, #ffd76a 100%);
  color: #1a1206;
  box-shadow: 0 8px 30px -8px rgba(245, 183, 0, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(245, 183, 0, 0.7); }
.btn-ghost {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  color: var(--text);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight);
}
.btn-ghost:hover { border-color: var(--purple-light); transform: translateY(-2px); }

/* ===== Glass panel utility (used sparingly: nav, forms, pricing, portfolio frame) ===== */
.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight), 0 30px 80px -30px rgba(0,0,0,0.7);
  position: relative;
}
.glass::before {
  content: "";
  position: absolute;
  top: 0; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
}

/* ===== Nav — floating glass pill ===== */
header {
  position: sticky;
  top: 18px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
nav {
  width: 100%;
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  background: rgba(15, 10, 24, 0.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: var(--glass-highlight), 0 20px 50px -20px rgba(0,0,0,0.8);
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-soft); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.86rem; }
.nav-toggle {
  display: none;
  background: none; border: none; color: var(--text);
  width: 34px; height: 34px; cursor: pointer;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav-mobile-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.nav-mobile-panel > div { overflow: hidden; }
.nav-mobile-panel .inner {
  margin-top: 10px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(15, 10, 24, 0.75);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  display: flex; flex-direction: column; gap: 4px;
}
.nav-mobile-panel a {
  padding: 12px 6px;
  font-size: 0.98rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.nav-mobile-panel a:first-child { border-top: none; }
.nav-mobile-panel a:hover, .nav-mobile-panel a.active { color: var(--gold-soft); }
header.menu-open .nav-mobile-panel { grid-template-rows: 1fr; }

/* ===== Page hero (used at top of every page, codable-style) ===== */
.page-hero {
  position: relative;
  padding: 90px 0 70px;
  text-align: center;
}
.page-hero .wrap { display: flex; flex-direction: column; align-items: center; }
.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
  max-width: 820px;
  margin: 22px 0 20px;
}
.page-hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}
.page-hero .hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }

.arc-glow {
  position: relative;
  height: 140px;
  margin-top: 40px;
  overflow: visible;
}
.arc-glow svg { width: 100%; height: 260px; display: block; }

.hero-mockup {
  max-width: 880px;
  margin: -60px auto 0;
  padding: 14px;
  overflow: hidden;
}
.hero-mockup img { width: 100%; border-radius: 18px; display: block; }

/* ===== Sections ===== */
section { position: relative; padding: 80px 0; z-index: 1; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--text-muted); font-size: 1.02rem; }


/* ===== Flowing feature rows (NOT cards) ===== */
.feature-rows { display: flex; flex-direction: column; }
.feature-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 26px;
  padding: 34px 0;
  border-top: 1px solid rgba(255,255,255,0.09);
  align-items: flex-start;
}
.feature-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.09); }
.icon-orb {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight);
  flex-shrink: 0;
}
.icon-orb svg { width: 22px; height: 22px; stroke: var(--gold-soft); }
.feature-row-body { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.feature-row-body h3 { font-size: 1.25rem; min-width: 260px; }
.feature-row-body p { color: var(--text-muted); font-size: 0.98rem; max-width: 480px; }

/* ===== Bento-style highlight grid (used on services page, not uniform cards) ===== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; }
.bento .glass {
  padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  position: relative;
}
.bento .glass::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../assets/img/bento-texture.svg");
  background-size: 200% auto;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}
.bento .glass > * { position: relative; z-index: 1; }
.bento .glass.tile-1::after { background-position: top left; }
.bento .glass.tile-2::after { background-position: center 15%; }
.bento .glass.tile-3::after { background-position: center 55%; }
.bento .glass.tile-4::after { background-position: bottom right; }
.bento .b-large { grid-column: span 2; grid-row: span 2; }
.bento .b-wide { grid-column: span 2; }
.bento h3 { font-size: 1.2rem; margin-bottom: 8px; }
.bento p { color: var(--text-muted); font-size: 0.9rem; }
.bento .icon-orb { margin-bottom: auto; }

/* ===== Process / steps ===== */
.process-track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 20px; }
.process-track::before {
  content: "";
  position: absolute;
  top: 34px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light), var(--gold));
  opacity: 0.5;
}
.process-step { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.process-num {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Clash Display", sans-serif;
  font-size: 1.4rem; font-weight: 600;
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border-gold);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight), 0 0 30px -6px rgba(245,183,0,0.35);
  color: var(--gold-soft);
  position: relative;
  z-index: 1;
}
.process-step h3 { font-size: 1.1rem; }
.process-step p { color: var(--text-muted); font-size: 0.92rem; max-width: 260px; }

/* ===== Why-us list (8 items, flowing, no cards) ===== */
.why-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 50px; }
.why-row {
  display: flex; gap: 20px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.why-list .why-row:nth-last-child(-n+1) { border-bottom: 1px solid rgba(255,255,255,0.09); }
.why-row .icon-orb { width: 46px; height: 46px; }
.why-row .icon-orb svg { width: 18px; height: 18px; }
.why-row h3 { font-size: 1.02rem; margin-bottom: 6px; }
.why-row p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== Pricing (glass panels — grouping genuinely needs separation) ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-panel { padding: 40px 32px; display: flex; flex-direction: column; }
.price-panel.featured { border-color: var(--glass-border-gold); box-shadow: var(--glass-highlight), 0 0 60px -20px rgba(245,183,0,0.4); transform: translateY(-10px); }
.price-badge {
  align-self: flex-start;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #1a1206; background: linear-gradient(120deg, var(--gold), var(--gold-soft));
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.price-panel h3 { font-size: 1.15rem; margin-bottom: 6px; }
.price-panel .price { font-size: 2.4rem; font-family: "Clash Display", sans-serif; margin: 14px 0 4px; }
.price-panel .price span { font-size: 0.95rem; color: var(--text-muted); font-family: "Satoshi", sans-serif; }
.price-panel .price-desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 26px; }
.price-panel ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; flex-grow: 1; }
.price-panel li { font-size: 0.9rem; color: var(--text-muted); display: flex; gap: 10px; align-items: flex-start; }
.price-panel li svg { width: 16px; height: 16px; stroke: var(--gold-soft); flex-shrink: 0; margin-top: 3px; }
.price-panel .btn { width: 100%; justify-content: center; }

/* ===== FAQ accordion (no boxes, hairline rows) ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-top: 1px solid rgba(255,255,255,0.09); }
.faq-list .faq-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.09); }
.faq-q {
  width: 100%;
  background: none; border: none; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 4px;
  font-size: 1.02rem; font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.faq-q .plus { color: var(--gold-soft); font-size: 1.3rem; transition: transform 0.35s var(--ease); flex-shrink: 0; margin-left: 20px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
  color: var(--text-muted); font-size: 0.94rem;
}
.faq-a > div { overflow: hidden; padding: 0 4px; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > div { padding-bottom: 24px; }

/* ===== About page ===== */
.about-flow { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.about-portrait {
  aspect-ratio: 1; padding: 46px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.about-portrait img { width: 96px; margin-bottom: 20px; }
.about-portrait h3 { font-size: 1.3rem; margin-bottom: 8px; }
.about-portrait p { color: var(--text-muted); font-size: 0.95rem; }
.about-copy p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.about-copy strong { color: var(--gold-soft); font-weight: 600; }

/* ===== Contact ===== */
.contact-flow { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; padding-top: 10px; }
.contact-info .item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info p, .contact-info a { color: var(--text-muted); font-size: 0.92rem; }
.contact-info a:hover { color: var(--gold-soft); }

form.inquiry { padding: 40px; display: grid; gap: 18px; }
form.inquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form.inquiry label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; display: block; }
form.inquiry input, form.inquiry textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.3s;
}
form.inquiry input:focus, form.inquiry textarea:focus { outline: none; border-color: var(--purple-light); }
form.inquiry textarea { resize: vertical; min-height: 110px; }
form.inquiry button { justify-self: start; margin-top: 6px; }
form.inquiry .form-success {
  display: none;
  color: var(--gold-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ===== Portfolio ===== */
.project-flow { display: flex; flex-direction: column; gap: 26px; }
.project-panel { padding: 22px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; align-items: center; }
.project-frame {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  border-radius: 18px;
  background: #050308;
  border: 1px solid var(--glass-border);
}
.project-frame iframe { position: absolute; top: 0; left: 0; width: 250%; height: 250%; transform: scale(0.4); transform-origin: top left; border: none; pointer-events: none; }
.project-frame .frame-bar { position: absolute; top: 0; left: 0; right: 0; height: 28px; background: rgba(10,7,16,0.85); display: flex; align-items: center; gap: 6px; padding: 0 12px; z-index: 2; }
.frame-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); opacity: 0.4; }
.link-preview {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 40px;
  background: radial-gradient(circle at 50% 40%, rgba(109,40,217,0.22), transparent 70%);
}
.link-preview .quote { color: var(--text-muted); font-size: 0.98rem; text-align: center; max-width: 320px; font-style: italic; }
.project-panel.placeholder .project-frame { display: flex; align-items: center; justify-content: center; position: relative; }
.project-panel.placeholder .spark-img { position: absolute; width: 220px; max-width: 60%; opacity: 0.8; }
.project-panel.placeholder .plus { position: relative; z-index: 1; font-size: 2.4rem; color: var(--text); }
.project-info .tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-soft); font-weight: 600; margin-bottom: 10px; display: block; }
.project-info h3 { font-size: 1.35rem; margin-bottom: 12px; }
.project-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.project-info .link { font-size: 0.9rem; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.project-info .link:hover { color: var(--gold-soft); }

/* ===== Closing CTA ===== */
.closing-cta { text-align: center; padding: 70px 40px; }
.closing-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.closing-cta p { color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }
.closing-cta .ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
footer { position: relative; z-index: 1; padding: 50px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.09); }
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-grid p { color: var(--text-muted); font-size: 0.88rem; max-width: 260px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--text-faint); padding-top: 24px; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.footer-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-flow, .contact-flow { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .b-large { grid-column: span 2; }
  .process-track { grid-template-columns: 1fr; gap: 46px; }
  .process-track::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-panel.featured { transform: none; }
  .why-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .feature-row { grid-template-columns: 48px 1fr; }
  .feature-row-body h3 { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
