/* amanraj.cloud — design system (enterprise) Single light theme, refined neutrals, accent used sparingly. */

:root {
  /* Surfaces */
  --bg:        #fafafa;
  --bg-elev:   #ffffff;
  --bg-soft:   #f4f4f5;     /* zinc-100 */
  --bg-deep:   #0e1117;     /* GitHub-style neutral charcoal (eye-comfortable) */
  --bg-deep-2: #13161d;     /* slightly elevated */
  --bg-deep-3: #06080b;     /* deepest — for footer base */

  /* Text */
  --text:      #0b1220;     /* near-black, slight blue tint */
  --text-2:    #3f3f46;     /* zinc-700 — secondary */
  --text-3:    #71717a;     /* zinc-500 — tertiary / muted */
  --text-inv:  #fafafa;
  --text-inv-2:#a1a1aa;     /* zinc-400 on dark */

  /* Lines & borders */
  --border:    #e4e4e7;     /* zinc-200 */
  --border-2:  #d4d4d8;     /* zinc-300 */
  --border-dk: rgba(255,255,255,0.10);

  /* Accent — used sparingly */
  --accent:        #0ea5e9; /* sky-500 */
  --accent-600:    #0284c7; /* sky-600 */
  --accent-700:    #0369a1; /* sky-700 */
  --accent-soft:   #e0f2fe; /* sky-100 */
  --accent-glow:   rgba(14,165,233,0.18);

  /* Status */
  --success:   #059669;
  --success-soft: #d1fae5;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows — restrained */
  --shadow-1: 0 1px 2px rgba(11,18,32,0.04);
  --shadow-2: 0 6px 16px -8px rgba(11,18,32,0.10), 0 2px 4px -2px rgba(11,18,32,0.06);
  --shadow-3: 0 24px 48px -16px rgba(11,18,32,0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset / base */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'cv11', 'ss01';
  font-size: 16px;
  line-height: 1.6;
}
p { color: var(--text-2); line-height: 1.7; margin: 0 0 1rem; }
.text-muted-soft { color: var(--text-3) !important; }
hr.soft { border: 0; border-top: 1px solid var(--border); opacity: 1; }
::selection { background: var(--accent-soft); color: var(--text); }

/* Type scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.display-1, .display-2, .display-3, .display-4, .display-5 {
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.05;
}
.display-3 { font-size: clamp(2.25rem, 4.4vw + 0.5rem, 3.75rem); }
.display-4 { font-size: clamp(2rem, 3.6vw + 0.4rem, 3rem); }
.display-5 { font-size: clamp(1.75rem, 2.6vw + 0.5rem, 2.5rem); }
h2 { font-size: clamp(1.5rem, 1.8vw + 0.8rem, 2.125rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.0625rem; }

.lead { font-size: 1.0625rem; color: var(--text-2); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-700);
}
.text-accent { color: var(--accent-700) !important; }
.kbd { font-family: var(--font-mono); font-size: 0.875em; background: var(--bg-soft); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }

a { color: var(--accent-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }

/* A11y */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 12px; top: 12px; width: auto; height: auto; z-index: 2000;
  background: var(--text); color: #fff; padding: .55rem .9rem; border-radius: 10px;
  text-decoration: none; box-shadow: var(--shadow-3);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Sections */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.bg-soft { background: var(--bg-soft); }
.divider-line { height: 1px; background: var(--border); }

/* Navbar */
.nav-modern {
  background: rgba(250,250,250,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1030;
  padding: 0.5rem 0;
}
.nav-modern .navbar-brand {
  font-weight: 700; color: var(--text); display: flex; align-items: center; gap: .6rem;
  font-size: 1rem; letter-spacing: -0.01em;
}
.nav-modern .brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.02em;
}
.nav-modern .nav-link {
  color: var(--text-2); font-weight: 500; padding: .45rem .8rem; border-radius: 8px;
  font-size: 0.9rem;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-modern .nav-link:hover { color: var(--text); background: var(--bg-soft); }
.nav-modern .nav-link.active { color: var(--text); }
.nav-modern .btn-cta {
  background: var(--text); color: #fff; border: 0; border-radius: 10px;
  padding: .5rem 1rem; font-weight: 600; font-size: 0.875rem;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-modern .btn-cta:hover { background: #1f2937; color: #fff; transform: translateY(-1px); }

/* Hero (consistent height across pages) */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 58vh, 560px);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: radial-gradient(1200px 500px at 20% -10%, rgba(14,165,233,0.08) 0%, transparent 60%),
              linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero > .container { width: 100%; }
.hero .pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text-2); padding: .35rem .75rem; border-radius: 999px;
  font-size: .8rem; font-weight: 500;
  box-shadow: var(--shadow-1);
}
.hero .pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}

/* Buttons */
.btn-modern {
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: .65rem 1.15rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
}
.btn-modern:hover { transform: translateY(-1px); }
.btn-primary-modern {
  background: var(--text); color: #fff; border-color: var(--text);
}
.btn-primary-modern:hover { background: #1f2937; border-color: #1f2937; color: #fff; }
.btn-ghost-modern {
  background: transparent; color: var(--text); border-color: var(--border-2);
}
.btn-ghost-modern:hover { background: var(--bg-soft); border-color: var(--text); color: var(--text); }
.btn-accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff; box-shadow: 0 6px 18px -8px var(--accent-glow); }
.btn-sm-modern { padding: .4rem .8rem; font-size: 0.825rem; }

/* Cards (general) */
.card-modern {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  height: 100%;
}
.card-modern:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-2);
}
.card-modern .card-body { padding: 1.75rem; }
.card-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-soft); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

/* Stat block (used in proof rows) */
.stat-block { padding: 1rem 1.25rem; border-left: 2px solid var(--border); }
.stat-block .num { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
.stat-block .lbl { font-size: 0.78rem; color: var(--text-3); margin-top: .35rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }

/* Centered stat row — hairline separators BETWEEN items, no border on first/last */
.stat-row-center { display: inline-flex; align-items: stretch; }
.stat-row-center .stat-block { border-left: 0; padding: 0.5rem 1.75rem; text-align: center; position: relative; }
.stat-row-center .stat-block + .stat-block::before {
  content: ''; position: absolute; left: 0; top: 15%; bottom: 15%;
  width: 1px; background: var(--border);
}
@media (max-width: 575.98px) {
  .stat-row-center { flex-direction: column; gap: 0.5rem; }
  .stat-row-center .stat-block + .stat-block::before {
    left: 25%; right: 25%; top: 0; bottom: auto; width: auto; height: 1px;
  }
}

/* CTA band (end-of-page CTAs across non-home pages) */
.cta-band {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 240px at 50% 0%, var(--accent-soft), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2, .cta-band h3 { letter-spacing: -0.025em; }

/* Cert tiles */
.cert-tile {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.cert-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-2);
}
.cert-tile img {
  width: 100%; max-width: 180px; height: auto;
  transition: transform .35s var(--ease);
}
.cert-tile:hover img { transform: scale(1.03); }
.cert-tile .cert-name {
  font-size: .82rem; color: var(--text-2);
  margin-top: .85rem; font-weight: 500; line-height: 1.4;
}

/* Smaller variant used in the home About preview */
.cert-tile.cert-tile-sm { padding: 1rem 0.85rem 0.85rem; }
.cert-tile.cert-tile-sm img { max-width: 90px; }
.cert-tile.cert-tile-sm .cert-name { font-size: .75rem; margin-top: .55rem; }

/* "+N more" tile (paired with cert-tile-sm grid) */
.cert-more {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: var(--bg-soft);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-md);
  padding: 1rem 0.85rem 0.85rem;
  text-decoration: none;
  color: var(--text);
  height: 100%;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.cert-more:hover {
  background: var(--text); border-color: var(--text); color: #fff;
  transform: translateY(-2px);
}
.cert-more .cm-num { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.cert-more .cm-lbl { font-size: .75rem; margin-top: .35rem; color: inherit; opacity: 0.7; }
.cert-more i { margin-top: .55rem; font-size: .9rem; transition: transform .25s var(--ease); }
.cert-more:hover i { transform: translateX(3px); }

/* Clickable variant */
.cert-tile.cert-clickable { cursor: zoom-in; }
.cert-tile.cert-clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Generic lightbox (used by certs page; looker uses its own) */
.lightbox-modal {
  position: fixed; inset: 0; background: rgba(11,18,32,.86);
  backdrop-filter: blur(8px); z-index: 1080;
  display: none; align-items: center; justify-content: center; padding: 2rem;
  animation: fadeIn .25s var(--ease);
}
.lightbox-modal.open { display: flex; }
.lightbox-modal img {
  max-width: min(92vw, 820px); max-height: 88vh;
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.lightbox-modal .lm-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,.10); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.4rem;
  transition: background .2s var(--ease);
}
.lightbox-modal .lm-close:hover { background: rgba(255,255,255,.22); }
.lightbox-modal .lm-caption {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: #fff; opacity: .8; font-size: .9rem; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  padding: 0.4rem 0.9rem; border-radius: 999px;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* FEATURE CARD — the dark surface, FRAMED inside light section */
.feature-card {
  position: relative;
  background:
    radial-gradient(600px 320px at 95% 0%, rgba(125,211,252,0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  color: var(--text-inv);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.05);
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 65%);
  pointer-events: none;
}
.feature-card > * { position: relative; }

.feature-card h2, .feature-card h3, .feature-card h4, .feature-card h5, .feature-card h6 { color: #f4f4f5; }
.feature-card p { color: #a1a1aa; }
.feature-card .eyebrow { color: #bae6fd; letter-spacing: 0.18em; }
.feature-card a { color: #bae6fd; }
.feature-card a:hover { color: #e0f2fe; }

.feature-card .btn-primary-modern { background: #fff; color: var(--text); border-color: #fff; }
.feature-card .btn-primary-modern:hover { background: #e4e4e7; border-color: #e4e4e7; color: var(--text); }
.feature-card .btn-ghost-modern { color: var(--text-inv); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); }
.feature-card .btn-ghost-modern:hover { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.30); }

.feature-card .pill {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: #a1a1aa; padding: .35rem .75rem; border-radius: 999px; font-size: .78rem;
  display: inline-flex; align-items: center; gap: .45rem;
}
.feature-card .tag-free {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(16,185,129,0.08); color: #86efac;
  border: 1px solid rgba(16,185,129,0.20);
  padding: .35rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
}

/* Stats inside feature card */
.feature-stats { display: flex; flex-wrap: wrap; gap: 0; }
.feature-stats .stat { padding: 0 1.5rem; border-left: 1px solid rgba(255,255,255,0.08); }
.feature-stats .stat:first-child { padding-left: 0; border-left: 0; }
.feature-stats .num { font-size: 2rem; font-weight: 700; letter-spacing: -0.025em; color: #f4f4f5; line-height: 1; }
.feature-stats .num span { color: #bae6fd; }
.feature-stats .lbl { font-size: 0.72rem; color: #71717a; margin-top: .4rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; }

/* Topic chips inside feature card */
.topic-chip {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  text-decoration: none;
  height: 100%;
}
.topic-chip:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.045);
  border-color: rgba(186,230,253,0.28);
}
.topic-chip .ic {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(186,230,253,0.10); color: #bae6fd;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.topic-chip .ti { color: #f4f4f5; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em; }
.topic-chip .td { color: #a1a1aa; font-size: 0.78rem; line-height: 1.5; margin: 0; flex-grow: 1; }
.topic-chip .tm { color: #bae6fd; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-top: .25rem; }

/* Looker strip */
.looker-strip .num-highlight { font-weight: 700; color: var(--text); }

/* Contact list (refined) */
.contact-list { margin: 0; padding: 0; }
.contact-list li { margin-bottom: 0.25rem; }
.contact-list a {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .55rem .85rem .55rem .65rem;
  margin-left: -0.65rem;
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.contact-list a:hover { background: var(--bg-soft); color: var(--text); }
.contact-list a i { font-size: 1.05rem; color: var(--text-2); width: 20px; text-align: center; }
.contact-list a:hover i { color: var(--accent-700); }
.contact-list a i.tiny { font-size: 0.75rem; color: var(--text-3); margin-left: 0.15rem; }

/* File drop (custom file input) */
.file-drop {
  display: flex; align-items: center; gap: 0.6rem;
  padding: .75rem 1rem;
  border: 1px dashed var(--border-2);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-3);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  width: 100%;
}
.file-drop:hover { border-color: var(--text); color: var(--text); background: var(--bg-elev); }
.file-drop i { font-size: 1.05rem; }
.file-drop.has-file { border-style: solid; border-color: var(--border); color: var(--text); background: var(--bg-elev); }
.file-drop.has-file i { color: var(--accent-700); }

/* Contact form */
.form-modern .form-label { font-size: 0.8rem; color: var(--text-3); margin-bottom: .35rem; font-weight: 500; }
.form-modern .form-control {
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: .7rem .9rem; font-size: 0.92rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-modern .form-control::placeholder { color: var(--text-3); }
.form-modern .form-control:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(11,18,32,0.08);
}

/* Footer (dark, intentional closing surface) */
.footer-modern {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-3) 100%);
  color: var(--text-inv-2);
  padding: 3rem 0 2rem;
  border-top: 0;
}
.footer-modern .footer-link { color: var(--text-inv-2); font-size: 0.875rem; }
.footer-modern .footer-link:hover { color: #fff; }
.footer-modern a { color: var(--text-inv-2); }
.footer-modern a:hover { color: #fff; }
.footer-modern .brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.02em;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .card-modern, .cert-tile, .topic-chip, .btn-modern { transition: none !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
  .feature-stats .stat { padding: 0 1rem; }
  .feature-stats .stat:first-child { padding-left: 0; }
  .feature-stats .num { font-size: 1.5rem; }
  .stat-block { border-left: 0; border-top: 1px solid var(--border); padding: 0.75rem 0; }
}
