/* Ray Technologies — raytech.co.in
   Mobile-first. White base for readability in bright light; navy for trust,
   deep sunrise orange for actions, gold only as decoration. */

@font-face {
  font-family: "Jakarta";
  src: url("/fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("/fonts/jakarta-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113;
}

:root {
  --navy: #0B1F3A;
  --navy-2: #13305A;
  --ink: #334155;
  --muted: #5B6B82;
  --line: #E3E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F6F8FB;
  --action: #C2410C;       /* ~5.2:1 with white text */
  --action-hover: #9A3412;
  --sun: #F97316;          /* illustration only, never text */
  --gold: #D4A017;         /* decoration only */
  --gold-soft: #FBF3DC;
  --radius: 16px;
  --wrap: 1160px;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--action); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(11, 31, 58, .06); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand svg { width: 32px; height: 32px; flex: none; }
.wordmark { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark b { font-weight: 800; }
.nav { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .9375rem; border-radius: 10px; }
.btn-link { color: var(--navy); padding: 0 6px; min-height: 44px; }
.btn-link:hover { color: var(--action); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 28px 0 8px;
  background:
    radial-gradient(90% 60% at 100% 0%, #FFF3E6 0%, rgba(255, 243, 230, 0) 70%),
    var(--bg);
}
.hero-grid { display: grid; gap: 8px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-2);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--gold); }
h1 { font-size: clamp(2.4rem, 9vw, 4.25rem); font-weight: 800; letter-spacing: -0.03em; }
.hl { color: var(--action); background: linear-gradient(transparent 82%, rgba(212, 160, 23, .45) 82%, rgba(212, 160, 23, .45) 94%, transparent 94%); }
.lede { margin-top: 18px; font-size: 1.125rem; color: var(--ink); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 26px; }
.hero .cta-row .btn-primary { flex: 1 1 100%; }
.note { margin-top: 14px; font-size: .9375rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.hero-art { margin: 6px -12px 0; }
.hero-scene { width: 100%; height: auto; overflow: visible; }
.hero-scene text { font-family: inherit; }
.hero-scene .rays { transform-box: view-box; transform-origin: 486px 128px; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.facts-row { list-style: none; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
.facts-row li { padding: 18px 4px 18px 0; display: flex; flex-direction: column; }
.facts-row li:nth-child(odd) { border-right: 1px solid var(--line); }
.facts-row li:nth-child(even) { padding-left: 18px; }
.facts-row li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.facts-row b { color: var(--navy); font-size: 1.0625rem; }
.facts-row span { font-size: .875rem; color: var(--muted); line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(1.75rem, 5.5vw, 2.6rem); font-weight: 800; max-width: 22ch; }
.section-lede { margin-top: 14px; font-size: 1.0625rem; max-width: 40rem; }

.cards { display: grid; gap: 14px; margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: start; }
.card .icon { grid-row: span 2; }
.card h3 { font-size: 1.1875rem; margin: 2px 0 6px; }
.card p { font-size: 1rem; }
.icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #FFF1E6; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--action); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Platforms ---------- */
.platforms { display: grid; gap: 18px; margin-top: 32px; }
.platform { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.screen-wrap { padding: 14px 14px 0; background: linear-gradient(180deg, #EEF2F8, #fff); }
.screen-wrap .screen { width: 100%; filter: drop-shadow(0 10px 24px rgba(11, 31, 58, .10)); }
.screen text:not([font-family]) { font-family: "Jakarta", ui-sans-serif, system-ui, sans-serif; }
.platform-body { padding: 20px 22px 24px; }
.platform-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.platform-head h3 { font-size: 1.375rem; }
.pill { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.pill-navy { background: #E8EEF7; color: var(--navy-2); }
.pill-gold { background: var(--gold-soft); color: #6B4E00; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; text-decoration: none; min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.fine { font-size: .875rem; color: var(--muted); margin-top: 10px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; box-shadow: 0 0 0 4px var(--gold-soft), 0 0 0 5px rgba(212, 160, 23, .55); }
.steps h3 { font-size: 1.125rem; margin-bottom: 4px; }
.steps p { font-size: 1rem; }

/* ---------- Founder ---------- */
.founder { display: grid; gap: 20px; align-items: start; }
.monogram { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.75rem; letter-spacing: .02em; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold); }
.founder h2 { margin-bottom: 12px; }
.founder p:not(.eyebrow) { max-width: 44rem; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #DCE4F0; padding: 64px 0; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; right: -90px; bottom: -150px; width: 300px; height: 300px; border-radius: 50%;
  border: 2px solid rgba(212, 160, 23, .35); box-shadow: 0 0 0 28px rgba(212, 160, 23, .06), 0 0 0 56px rgba(212, 160, 23, .035);
}
.contact-inner { position: relative; }
.contact h2 { color: #fff; max-width: 20ch; }
.contact p { margin-top: 14px; max-width: 36rem; font-size: 1.0625rem; }
.contact .btn-primary { flex: 1 1 100%; }
.contact .btn-light { flex: 1 1 100%; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 28px; background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 20px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9375rem; color: var(--muted); }
.footer-links a { color: var(--navy); font-weight: 600; text-decoration-color: rgba(11, 31, 58, .25); text-underline-offset: 3px; }
.footer-base { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Larger screens ---------- */
@media (max-width: 379px) {
  .wordmark { font-size: 1rem; }
  .brand { gap: 8px; }
  .brand svg { width: 28px; height: 28px; }
  .btn-sm { padding: 0 12px; font-size: .875rem; }
}

@media (min-width: 600px) {
  .hero-art { max-width: 560px; margin: 8px auto 0; }
  :root { --gutter: 28px; }
  .hero .cta-row .btn-primary, .contact .btn-primary, .contact .btn-light { flex: 0 0 auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .facts-row { grid-template-columns: repeat(4, 1fr); }
  .facts-row li, .facts-row li:nth-child(n) { border: 0; padding: 22px 16px; border-right: 1px solid var(--line); }
  .facts-row li:first-child { padding-left: 0; }
  .facts-row li:last-child { border-right: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: auto 1fr; gap: 32px; }
}

@media (min-width: 960px) {
  body { font-size: 1.125rem; }
  .nav { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
  .nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9875rem; }
  .nav a:hover { color: var(--action); }
  .header-row { height: 72px; }
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px; }
  .hero-art { margin: 0 -20px 0 0; }
  .lede { font-size: 1.25rem; }
  h1 { font-size: 3.6rem; }
  .card { display: block; padding: 22px; }
  .card h3 { margin: 14px 0 6px; }
  .section { padding: 96px 0; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .platforms { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { flex-direction: column; }
  .contact { padding: 88px 0; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scene .rays { animation: none; }
  .btn { transition: none; }
}
.nf-title { margin-top: 40px; }
