/* ============================================================
   TestSutra — Shared Stylesheet
   tathvatech.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,300;0,400;1,300&family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #060c1f;
  color: #c8d0e0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ── Design Tokens ── */
:root {
  --deep:        #060c1f;
  --mid:         #0a1535;
  --brand:       #1a3a8f;
  --bright:      #2d5be3;
  --glow:        #6eb3ff;
  --accent:      #f59e0b;
  --white:       #ffffff;
  --off-white:   #e8eaf0;
  --muted:       #7a8aaa;
  --muted-soft:  #4a5570;
  --success:     #4ade80;
  --danger:      #f87171;
  --hairline:    rgba(255,255,255,0.09);
  --hairline-s:  rgba(255,255,255,0.16);
  --ink:         #0c0a09;

  --font-display: 'EB Garamond', 'Times New Roman', serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-pill: 9999px;

  --nav-height:  66px;
}

/* ── Layout ── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
}
.section        { padding: 96px 0; }
.section-sm     { padding: 64px 0; }
.section-lg     { padding: 120px 0; }

/* ── Typography ── */
.display-hero {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -2px;
  color: var(--white);
  text-wrap: pretty;
}
.display-hero em {
  font-style: italic;
  background: linear-gradient(135deg, #6eb3ff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--white);
  text-wrap: pretty;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--white);
  text-wrap: pretty;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--white);
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
  font-style: italic;
}

.body-lg  { font-size: 18px; line-height: 1.65; color: rgba(255,255,255,0.55); }
.body-md  { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.55); }
.body-sm  { font-size: 14px; line-height: 1.65; color: var(--muted); }
.body-xs  { font-size: 13px; line-height: 1.6;  color: var(--muted); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--glow);
  flex-shrink: 0;
}
.section-tag.ctr { justify-content: center; }
.section-tag.ctr::before { display: none; }

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-muted  { color: var(--muted) !important; }
.text-glow   { color: var(--glow) !important; }
.text-success { color: var(--success) !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-lg { height: 52px; padding: 0 32px; font-size: 15px; }
.btn-md { height: 44px; padding: 0 24px; font-size: 14px; }
.btn-sm { height: 36px; padding: 0 18px; font-size: 13px; }

.btn-primary {
  background: var(--white);
  color: var(--ink);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(255,255,255,0.18);
  color: var(--ink);
}

.btn-brand {
  background: var(--bright);
  color: var(--white);
}
.btn-brand:hover {
  background: #3a6ef0;
  box-shadow: 0 8px 28px rgba(45,91,227,0.4);
  color: var(--white);
}

.btn-outline {
  background: rgba(255,255,255,0.07);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.65);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--white); transform: none; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--glow);
  cursor: pointer;
  transition: gap 0.15s;
  background: none;
  border: none;
  padding: 0;
}
.btn-link:hover { gap: 10px; }
.btn-link svg { flex-shrink: 0; }

/* ── Cards ── */
.card {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  background: rgba(255,255,255,0.065);
  border-color: var(--hairline-s);
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* ── Form Elements ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--white);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: rgba(45,91,227,0.65); }
.form-select { cursor: pointer; }
.form-select option { background: #0a1535; color: var(--white); }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Feature check list ── */
.check-list { display: flex; flex-direction: column; gap: 11px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.68);
}
.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(74,222,128,0.13);
  border: 1px solid rgba(74,222,128,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.bullet-list { display: flex; flex-direction: column; gap: 11px; }
.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}
.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}
.bullet-dot.red   { background: rgba(248,113,113,0.85); }
.bullet-dot.green { background: rgba(74,222,128,0.85); }
.bullet-dot.blue  { background: rgba(110,179,255,0.85); }

/* ── Background effects ── */
.bg-deep  { background: var(--deep); }
.bg-mid   { background: var(--mid); }
.bg-grad-down  { background: linear-gradient(180deg, var(--deep) 0%, var(--mid) 100%); }
.bg-grad-up    { background: linear-gradient(180deg, var(--mid) 0%, var(--deep) 100%); }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 14s ease-in-out infinite alternate;
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -50px) scale(1.08); }
}

/* Page hero shared */
.page-hero {
  padding: 140px 0 88px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #060c1f 0%, #0c1d4a 50%, #060c1f 100%);
}
.page-hero-orb {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: rgba(45,91,227,0.26);
  filter: blur(110px);
  top: -250px; right: -150px;
  pointer-events: none; z-index: 0;
}
.page-hero-content { position: relative; z-index: 2; max-width: 760px; }

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, #0a1535 0%, #0e2060 50%, #0a1535 100%);
  border-top: 1px solid var(--hairline);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(45,91,227,0.2);
  filter: blur(120px);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; text-align: center; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* Screenshot frames */
.ss-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}
.ss-frame img { width: 100%; display: block; }

/* Stat block */
.stat-block {}
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.5px;
}
.stat-desc { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Icon box */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(45,91,227,0.18);
  border: 1px solid rgba(45,91,227,0.3);
  flex-shrink: 0;
}
.icon-box-sm  { width: 36px; height: 36px; border-radius: var(--radius-sm); }
.icon-box-md  { width: 46px; height: 46px; }
.icon-box-lg  { width: 56px; height: 56px; border-radius: var(--radius-lg); }
.icon-box-green {
  background: rgba(74,222,128,0.12);
  border-color: rgba(74,222,128,0.25);
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }

/* Divider */
.divider { width: 100%; height: 1px; background: var(--hairline); }
.vdivider { width: 1px; height: 40px; background: var(--hairline); }

/* ============================================================
   RESPONSIVE — Tablet (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 72px 0; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; gap: 20px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .display-hero  { font-size: clamp(36px, 9vw, 52px); letter-spacing: -1.5px; }
  .display-xl    { font-size: clamp(28px, 7.5vw, 42px); }
  .display-lg    { font-size: clamp(26px, 7vw, 36px); }
  .btn-lg { height: 48px; padding: 0 24px; font-size: 14px; }
  .body-lg { font-size: 16px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
