/* ============================================================
   ORYN — styles.css
   Dark, luxurious, minimal. Every value is intentional.
   ============================================================ */

/* ----------------------------------------------------------
   1. DESIGN TOKENS
---------------------------------------------------------- */
:root {
  /* Color */
  --bg:            #000000;
  --bg-secondary:  #0D0D0D;
  --card:          #111111;
  --border:        #222222;
  --text:          #FFFFFF;
  --text-muted:    #B5B5B5;
  --accent:        #FFFFFF;

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-section: clamp(6rem, 12vw, 11rem);
  --container:     1200px;
  --gutter:        clamp(1.25rem, 5vw, 3rem);

  /* Motion */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --dur:           0.6s;

  /* Radius */
  --radius:        14px;
}

/* ----------------------------------------------------------
   2. RESET & BASE
---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 100px; /* offset for sticky nav */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

::selection { background: var(--text); color: var(--bg); }

/* Focus visibility for accessibility */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Layout helper */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ----------------------------------------------------------
   3. TYPOGRAPHY
---------------------------------------------------------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }

.section__label {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 18ch;
}

.section__lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 52ch;
  margin-top: 1.5rem;
  font-weight: 300;
}

/* ----------------------------------------------------------
   4. BUTTONS
---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.9rem 1.6rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              background 0.3s var(--ease),
              color 0.3s var(--ease),
              box-shadow 0.4s var(--ease),
              border-color 0.3s var(--ease);
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn--lg { padding: 1.1rem 2.2rem; font-size: 1.05rem; }

/* ----------------------------------------------------------
   5. NAVIGATION — sticky + glass
---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Glass effect intensifies once scrolled (toggled via JS) */
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
}

.nav__links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin-inline: auto;
}
.nav__links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--text);
  transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { padding: 0.6rem 1.2rem; font-size: 0.88rem; }

/* Mobile toggle (hidden on desktop) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------
   6. HERO
---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Radial vignette to seat the particles */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 0%, var(--bg) 78%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 8rem 6rem;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero__title {
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.04em;
}
.hero__title span { display: block; }
.hero__title span:nth-child(2) { color: var(--text); }
.hero__title span:nth-child(3) { color: var(--text-muted); }

.hero__subtitle {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 300;
  max-width: 46ch;
  margin-top: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(var(--text-muted), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ----------------------------------------------------------
   7. SECTION SHELL
---------------------------------------------------------- */
.section { padding-block: var(--space-section); }
.section--alt { background: var(--bg-secondary); }

.section__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__head--center { text-align: center; }
.section__head--center .section__title,
.section__head--center .section__lead { margin-inline: auto; }

/* ----------------------------------------------------------
   8. SERVICES GRID
---------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  background: var(--card);
  padding: 2.5rem 2rem;
  position: relative;
  isolation: isolate;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
  cursor: default;
}
/* Luxury hover: subtle lift + inner glow that follows the cursor */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.06),
    transparent 60%
  );
  transition: opacity 0.4s var(--ease);
}
.card:hover, .card:focus-visible {
  background: #141414;
  transform: translateY(-4px);
}
.card:hover::before, .card:focus-visible::before { opacity: 1; }

.card__no {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.card__title { font-size: 1.35rem; margin: 1.25rem 0 0.75rem; }
.card__text { color: var(--text-muted); font-size: 0.95rem; font-weight: 300; }

/* ----------------------------------------------------------
   9. PROCESS TIMELINE
---------------------------------------------------------- */
.timeline {
  list-style: none;
  position: relative;
  max-width: 760px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.5rem;
  padding: 2rem 0 2rem 2rem;
  position: relative;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -4px; top: 2.6rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 4px var(--bg);
  transition: box-shadow 0.4s var(--ease);
}
.section--alt .timeline__item::before { box-shadow: 0 0 0 4px var(--bg-secondary); }
.timeline__item:hover::before { box-shadow: 0 0 18px 2px rgba(255,255,255,0.4); }

.timeline__no {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-muted);
}
.timeline__title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.timeline__text { color: var(--text-muted); font-weight: 300; }

/* ----------------------------------------------------------
   10. AI / TECHNOLOGY
---------------------------------------------------------- */
.ai { position: relative; overflow: hidden; }
.ai__title { font-size: clamp(2.5rem, 7vw, 5rem); }
.ai__lead { max-width: 60ch; }

.ai__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.ai__cell {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ai__cell:hover {
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(255,255,255,0.05);
}
.ai__cell h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.ai__cell p { color: var(--text-muted); font-size: 0.9rem; font-weight: 300; }

/* ----------------------------------------------------------
   10b. OPERATING SYSTEM — dashboard graphics
---------------------------------------------------------- */
.dash {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 50px 130px rgba(0, 0, 0, 0.65);
}
.dash__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  background: #0d0d0d;
}
.dash__title {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
}
.dash__chip {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 0.32rem 0.75rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.dash__chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px #fff;
}
.dash__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1px;
  background: var(--border);
}
.panel { background: var(--card); padding: 1.6rem 1.7rem; }
.panel--chart { grid-row: span 2; }
.panel--metrics {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.3rem; font-size: 0.92rem; color: var(--text);
}
.panel__delta { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.08em; }

/* Line chart */
.chart { width: 100%; height: 200px; display: block; }
.chart__area { fill: rgba(255, 255, 255, 0.05); stroke: none; }
.chart__line {
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1500; stroke-dashoffset: 1500;
}
.dash.is-visible .chart__line { animation: draw 1.9s var(--ease) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart__dot {
  fill: #fff; opacity: 0;
  transform-box: fill-box; transform-origin: center;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.75));
}
.dash.is-visible .chart__dot { animation: pop 0.5s var(--ease) 1.8s forwards; }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

/* Pipeline */
.pipe { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.pipe li {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.92rem; color: var(--text);
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.pipe li:last-child { border-bottom: none; padding-bottom: 0; }
.pill {
  font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.28rem 0.65rem; border-radius: 100px;
  border: 1px solid var(--border); color: var(--text-muted); font-style: normal;
}
.pill--live { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.pill--paid { color: #fff; }

/* Metrics + sparklines */
.metric { display: flex; flex-direction: column; gap: 0.7rem; }
.metric__label { font-size: 0.82rem; color: var(--text-muted); }
.spark { width: 100%; height: 34px; display: block; }
.spark path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark--down path { stroke: #6f6f6f; }

.os__note {
  text-align: center; margin-top: 1.5rem;
  font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .dash__grid { grid-template-columns: 1fr; }
  .panel--chart { grid-row: auto; }
  .panel--metrics { grid-template-columns: 1fr; gap: 1.3rem; }
}

/* ----------------------------------------------------------
   11. CTA
---------------------------------------------------------- */
.cta {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: clamp(6rem, 14vw, 12rem);
  text-align: center;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  max-width: 16ch;
  letter-spacing: -0.04em;
}
.cta__text {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  max-width: 46ch;
  margin: 1.75rem 0 3rem;
}

/* ----------------------------------------------------------
   12. FOOTER
---------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: clamp(4rem, 8vw, 6rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr auto;
  gap: 3rem;
  padding-bottom: 4rem;
}
.footer__logo { font-size: 1.5rem; font-weight: 600; letter-spacing: 0.18em; }
.footer__tag {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}
.footer__nav { display: flex; gap: 4rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.85rem; }
.footer__col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.footer__col a { font-size: 0.95rem; color: var(--text-muted); transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--text); }

.footer__social { display: flex; gap: 1rem; align-items: flex-start; }
.footer__social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer__social a:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 24px rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ----------------------------------------------------------
   13. SCROLL REVEAL (IntersectionObserver targets)
---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------------
   14. RESPONSIVE
---------------------------------------------------------- */
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__nav { gap: 3rem; }
}

@media (max-width: 820px) {
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-120%);
    transition: transform 0.45s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav__links a::after { display: none; }
}

@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .timeline__item { grid-template-columns: 60px 1fr; gap: 1rem; padding-left: 1.5rem; }
  .card { padding: 2rem 1.5rem; }
}

/* ----------------------------------------------------------
   15. REDUCED MOTION
---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* Keep the chart fully drawn when motion is reduced */
  .chart__line { stroke-dashoffset: 0 !important; }
  .chart__dot { opacity: 1 !important; }
}
