/* ============================================================
   Raudhra Technologies — Design tokens (aligned to investor deck)
   Palette (from the actual deck: near-black bg, white text, green accent):
     --bg          #141416  primary near-black background
     --bg-alt      #1B1C1F  slightly lifted panel background
     --bg-card     #202226  card background
     --line        rgba(255,255,255,0.10)  hairline borders
     --white       #F4F5F3  primary text
     --text-soft   rgba(244,245,243,0.68)  secondary text
     --green       #3DAA5C  brand green (accent, kickers, icons)
     --green-bright#4FCB74  hover / bright accent
   Type:
     Display/headline: "Fraunces" (bold serif — matches deck's heavy serif headlines)
     UI/body: "Space Grotesk" (technical grotesk, matches deck's small-caps kickers)
   ============================================================ */

:root {
  --bg: #141416;
  --bg-alt: #1B1C1F;
  --bg-card: #202226;
  --bg-card-2: #1A2620;
  --line: rgba(244, 245, 243, 0.10);
  --line-strong: rgba(244, 245, 243, 0.18);
  --white: #F4F5F3;
  --text-soft: rgba(244, 245, 243, 0.68);
  --text-softer: rgba(244, 245, 243, 0.48);
  --green: #3DAA5C;
  --green-bright: #4FCB74;
  --green-dim: rgba(61, 170, 92, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --max: 1160px;
  --pad: clamp(20px, 5vw, 64px);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--white);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-soft); max-width: 62ch; }

a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* subtle geometric texture echoing the deck's angular corner motif */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.4;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0) 0 0/3px 3px,
    linear-gradient(135deg, transparent 60%, rgba(61,170,92,0.05) 100%);
}

.inline-link { color: var(--green-bright); font-weight: 600; text-decoration: none; white-space: nowrap; }
.inline-link:hover { text-decoration: underline; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(20, 20, 22, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--white);
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600; line-height: 1.1;
  display: flex; flex-direction: column;
}
.brand-word-sub {
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--text-softer);
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  text-decoration: none; color: var(--text-soft);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav .nav-cta {
  background: var(--green); color: #0D160F;
  padding: 9px 16px; border-radius: 2px; font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--green-bright); color: #0D160F; }
.nav-toggle { display: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #0D160F; }
.btn-primary:hover { background: var(--green-bright); }
.btn-ghost { border-color: var(--line-strong); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); }
.btn-block { width: 100%; }

/* ---------------- Hero ---------------- */

.hero {
  padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-bright);
  margin-bottom: 22px;
  max-width: none;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  max-width: 16ch;
}

.hero-lede {
  font-size: 1.08rem;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}


/* ---------------- Hero Visual ---------------- */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mark-graphic {
  width: 100%;
  max-width: 340px;
  height: auto;
  overflow: visible;
}


/* ---------------- Orbital Rings ---------------- */

.mark-graphic .ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.mark-graphic .ring-outer {
  stroke: var(--line);
  opacity: 0.55;
  animation: ringPulse 8s ease-in-out infinite;
}

.mark-graphic .ring-mid {
  stroke: var(--green);
  stroke-opacity: 0.35;
  animation: ringPulseReverse 10s ease-in-out infinite;
}


/* ---------------- Centre Logo ---------------- */

/*
  Your actual logo is inserted using:

  <image
    href="assets/raudhra-logo.svg"
    x="145"
    y="145"
    width="130"
    height="130"
    preserveAspectRatio="xMidYMid meet"
  />
*/

.mark-graphic image {
  opacity: 0.98;
  transform-origin: 210px 210px;
}


/* ---------------- Electrons ---------------- */

.mark-graphic .electron {
  fill: var(--green-bright);

  filter:
    drop-shadow(0 0 4px var(--green))
    drop-shadow(0 0 9px rgba(255, 255, 255, 0.25));

  animation: electronPulse 4s ease-in-out infinite;
}


/* ---------------- Electron Orbits ---------------- */

.mark-graphic .electron-orbit {
  transform-origin: 210px 210px;
}

.mark-graphic .orbit-1 {
  animation: orbitClockwise 18s linear infinite;
}

.mark-graphic .orbit-2 {
  animation: orbitCounterClockwise 24s linear infinite;
}

.mark-graphic .orbit-3 {
  animation: orbitClockwise 29s linear infinite;
}

.mark-graphic .orbit-4 {
  animation: orbitCounterClockwise 21s linear infinite;
}


/* ---------------- Orbit Animation ---------------- */

@keyframes orbitClockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitCounterClockwise {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}


/* ---------------- Electron Glow ---------------- */

@keyframes electronPulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}


/* ---------------- Ring Breathing ---------------- */

@keyframes ringPulse {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 0.75;
  }
}

@keyframes ringPulseReverse {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.65;
  }
}


/* ---------------- Mobile ---------------- */

@media (max-width: 800px) {

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .hero-visual {
    margin-top: 10px;
  }

  .mark-graphic {
    max-width: 300px;
  }
}


/* ---------------- Accessibility ---------------- */

@media (prefers-reduced-motion: reduce) {

  .mark-graphic .ring,
  .mark-graphic .electron,
  .mark-graphic .electron-orbit {
    animation: none;
  }

}

/* ---------------- Section scaffolding ---------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; z-index: 1; }
.section-muted { background: var(--bg-alt); }
.section-dark { background: #0F1012; }

.section-index {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  color: var(--green-bright); margin-bottom: 14px; letter-spacing: 0.02em;
}

.section-heading { max-width: 680px; margin-bottom: 44px; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-sub { font-size: 1.02rem; }

.section-principle {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.95rem; color: var(--text-soft); max-width: none;
}
.section-principle.light { color: var(--text-soft); }

/* ---------------- Problem grid ---------------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.problem-card { background: var(--bg); padding: 32px 26px; position: relative; }
.problem-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--green); display: block; margin-bottom: 12px; }
.problem-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.problem-tag { font-size: 0.82rem; font-weight: 600; color: var(--text-softer); margin-bottom: 12px; }
.problem-card p:not(.problem-tag):not(.problem-impact) { font-size: 0.93rem; }
.problem-impact { font-size: 0.85rem; color: var(--text-softer); margin: 0; }
.problem-implication {
  margin-top: 28px; font-size: 1rem; color: var(--white); font-family: var(--font-display); font-style: italic;
  max-width: none;
}

/* ---------------- Solution grid ---------------- */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.solution-card { background: var(--bg-alt); padding: 30px 26px; }
.solution-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.solution-card p { font-size: 0.93rem; margin: 0; }

/* ---------------- Stat grid (Why Now / DPDP) ---------------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.stat-card { background: var(--bg); padding: 28px 22px; }
.section-dark .stat-card { background: #0F1012; }
.stat-value {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  color: var(--green-bright); margin-bottom: 10px;
}
.stat-label { font-size: 0.88rem; margin: 0; color: var(--text-soft); }

/* ---------------- Offer grid ---------------- */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.offer-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  padding: 28px 26px; display: flex; flex-direction: column;
}
.offer-pill {
  display: inline-block; align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--green-bright); background: var(--green-dim);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 16px;
}
.offer-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.offer-card p { font-size: 0.93rem; }
.offer-role { font-size: 0.85rem; color: var(--text-softer); }

/* ---------------- Tabs (Case study) ---------------- */
.tabs { margin-top: 8px; }
.tab-list {
  display: flex; flex-wrap: wrap; gap: 6px;
  border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
.tab-btn {
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  color: var(--text-soft); background: none; border: none;
  padding: 12px 18px; cursor: pointer; position: relative; top: 1px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn:hover { color: var(--white); }
.tab-btn.is-active { color: var(--white); border-bottom-color: var(--green); }
.tab-panel-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start;
}
.tab-panel-grid h3 { font-size: 1.3rem; margin-bottom: 4px; }
.phase-weeks { font-size: 0.85rem; font-weight: 600; color: var(--green-bright); margin-bottom: 12px; }
.tab-panel-grid > div:first-child p:not(.phase-weeks) { font-size: 1rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  font-size: 0.95rem; color: var(--white); padding-left: 26px; position: relative;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 9px; height: 9px; border: 1.5px solid var(--green); border-radius: 2px;
}

.deliverables { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.deliverables h3 { font-size: 1rem; margin-bottom: 16px; }
.deliverables-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.deliverables-grid span {
  font-size: 0.85rem; font-weight: 500; color: var(--text-soft);
  border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: 999px;
}

/* ---------------- Traction ---------------- */
.traction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.traction-card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px; padding: 28px 24px;
}
.traction-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--green-bright); background: var(--green-dim);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 16px;
}
.traction-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.traction-card p { font-size: 0.92rem; margin: 0; }

/* ---------------- Positioning table ---------------- */
.table-scroll { overflow-x: auto; }
.positioning-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.positioning-table th, .positioning-table td {
  padding: 14px 16px; text-align: left; font-size: 0.9rem;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.positioning-table th { font-family: var(--font-body); font-weight: 700; color: var(--text-soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.02em; }
.positioning-table td:first-child { color: var(--white); font-weight: 500; white-space: normal; min-width: 220px; }
.positioning-table .highlight-col { background: var(--green-dim); color: var(--green-bright); font-weight: 700; }
.table-note { font-size: 0.82rem; color: var(--text-softer); margin-top: 16px; }

/* ---------------- process / engage lists ---------------- */
.process-list, .engage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.process-list li, .engage-list li {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.process-list li:last-child, .engage-list li:last-child { border-bottom: 1px solid var(--line); }
.process-num {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--green-bright);
}
.process-list h3, .engage-list h3 { font-size: 1.02rem; margin-bottom: 2px; }
.process-list p, .engage-list p { font-size: 0.92rem; margin: 0; }

/* ---------------- DPDP Awareness ---------------- */
.dpdp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin: 48px 0 40px;
}
.dpdp-block { border-top: 2px solid var(--green); padding-top: 18px; }
.dpdp-block h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 10px; }
.dpdp-block p { font-size: 0.92rem; }
.approach-steps { margin: 0; padding-left: 20px; color: var(--text-soft); font-size: 0.92rem; display: grid; gap: 6px; }
.dpdp-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.dpdp-cta p { color: var(--white); font-size: 1.05rem; margin: 0; max-width: 40ch; }

/* ---------------- Netra section ---------------- */
.section-netra {
  background: linear-gradient(180deg, #0F1012 0%, #0E1B14 100%);
}
.netra-index { color: var(--green-bright); }
.netra-top { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.netra-top h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.netra-meaning { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--text-softer); }
.netra-stat {
  border-left: 2px solid var(--green-bright); padding-left: 20px;
}
.netra-stat-value { font-family: var(--font-display); font-size: 2.2rem; color: var(--green-bright); margin: 0; }
.netra-stat-label { font-size: 0.85rem; margin: 6px 0 0; max-width: 30ch; }

.watch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 56px; }
.watch-card { background: #0E211F; padding: 28px 22px; }
.watch-icon { display: inline-flex; color: var(--green-bright); margin-bottom: 16px; }
.watch-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.watch-card h3 { font-size: 1rem; margin-bottom: 8px; }
.watch-card p { font-size: 0.88rem; margin: 0; }

.netra-form {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start;
  background: rgba(244,245,243,0.04); border: 1px solid var(--line);
  padding: 32px; border-radius: 3px;
}
.netra-form-copy h3 { margin-bottom: 6px; font-size: 1.15rem; }
.netra-form-copy p { font-size: 0.92rem; margin: 0; }
.netra-form-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.netra-form-fields input {
  flex: 1 1 200px; background: rgba(244,245,243,0.06); border: 1px solid var(--line-strong);
  color: var(--white); padding: 12px 14px; border-radius: 2px; font-family: var(--font-body); font-size: 0.92rem;
}
.netra-form-fields input::placeholder { color: var(--text-softer); }
.form-status { grid-column: 1 / -1; font-size: 0.85rem; margin: 0; min-height: 1.2em; }

/* ---------------- Why / client grids ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-card { border-top: 2px solid var(--green); padding-top: 18px; }
.why-card h3 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { font-size: 0.92rem; }

.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.client-card { background: var(--bg-alt); padding: 28px 22px; }
.client-card h3 { font-size: 1rem; margin-bottom: 8px; }
.client-card p { font-size: 0.9rem; margin: 0; }

/* ---------------- Contact ---------------- */
.contact-section .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.contact-card { margin-top: 28px; border-left: 2px solid var(--green-bright); padding-left: 18px; }
.contact-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); margin: 0; }
.contact-role { font-size: 0.88rem; margin: 2px 0 8px; }
.contact-phone a { color: var(--green-bright); text-decoration: none; font-weight: 600; }

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: rgba(244,245,243,0.05); border: 1px solid var(--line-strong);
  color: var(--white); padding: 13px 14px; border-radius: 2px;
  font-family: var(--font-body); font-size: 0.94rem; width: 100%;
}
.contact-form ::placeholder { color: var(--text-softer); }
.contact-form select { color: var(--text-soft); }
.contact-form select option { color: #111; }

/* ---------------- Footer ---------------- */
.site-footer { background: #0F1012; color: var(--text-softer); padding: 26px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--white); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 220px; margin: 0 auto; }
  .problem-grid, .solution-grid, .stat-grid, .offer-grid, .traction-grid, .why-grid, .client-grid, .watch-grid, .dpdp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .netra-top { grid-template-columns: 1fr; }
  .netra-form { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .tab-panel-grid { grid-template-columns: 1fr; }
  .process-list li, .engage-list li { grid-template-columns: 40px 1fr; }
  .dpdp-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .problem-grid, .solution-grid, .stat-grid, .offer-grid, .traction-grid, .why-grid, .client-grid, .watch-grid, .dpdp-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner { flex-direction: column; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px;
}

/* Mobile menu (JS toggled) */
.main-nav.open {
  display: flex; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 20px var(--pad) 26px; gap: 18px;
}
