/* =============================================================
   Arghya AI — Design tokens (v2, modern pass)
   Base: white / cool paper. Accent: indigo -> violet gradient.
   Type: Archivo (display, heavier weights) + IBM Plex Sans (body)
   ============================================================= */

:root {
  --white: #ffffff;
  --paper: #f6f6fb;
  --ink: #12131a;
  --ink-soft: #5c6070;
  --ink-faint: #9297a8;
  --line: #e7e8f0;
  --line-strong: #d6d8e4;

  --accent: #3355ff;
  --accent-deep: #1f36d9;
  --accent-2: #8b5cf6;
  --accent-wash: #eef1ff;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(51,85,255,0.14) 0%, rgba(139,92,246,0.14) 100%);
  --glow: rgba(51, 85, 255, 0.22);
  --glow-2: rgba(139, 92, 246, 0.18);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --gutter: clamp(24px, 5vw, 64px);
  --shadow-sm: 0 1px 2px rgba(18, 19, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 19, 26, 0.08);
  --shadow-lg: 0 24px 64px rgba(18, 19, 26, 0.12);
  --shadow-glow: 0 12px 40px rgba(51, 85, 255, 0.22);
}

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

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p { margin: 0; }

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

.eyebrow-label {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.eyebrow-label span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------- Reveal-on-scroll (section headers only) -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-deep);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-gradient {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}
.btn-gradient:hover { transform: translateY(-1px); box-shadow: 0 16px 48px rgba(51, 85, 255, 0.32); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }

.btn-block { width: 100%; justify-content: center; }

.btn svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.btn:hover svg { transform: translateX(2px); }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(18,19,26,0.02), var(--shadow-sm);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 32px; height: 32px; display: block; }
.brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.brand span em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--ink); background: var(--paper); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

.header-cta { display: flex; align-items: center; gap: 18px; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.hero-glow {
  position: absolute;
  inset: -10% -10% auto auto;
  width: 62vw;
  max-width: 900px;
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side, var(--glow), transparent 70%);
  filter: blur(10px);
}
.hero-glow.two {
  inset: auto auto -20% 5%;
  width: 40vw;
  max-width: 520px;
  background: radial-gradient(closest-side, var(--glow-2), transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(72px, 11vw, 132px);
  padding-bottom: clamp(64px, 9vw, 108px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  line-height: 1.04;
  max-width: 15ch;
  font-weight: 800;
}

.hero-copy .lede {
  margin-top: 26px;
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.55;
}

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

.hero-pills {
  margin-top: 44px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 9px 16px 9px 12px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.hero-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
}
.hero-visual .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.hero-visual .ring.r2 { inset: 12%; }
.hero-visual .ring.r3 { inset: 24%; border-color: var(--line-strong); }

.hero-mark {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.hero-mark svg { width: 44%; height: 44%; }

.hero-node {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-wash);
}

/* -------------------- Section shell -------------------- */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section-alt { background: var(--paper); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.1;
}
.section-head .desc { color: var(--ink-soft); font-size: 1.05rem; }

/* -------------------- Services -------------------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.domain-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card .index {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 18px 0 22px;
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 1.32rem;
  margin-bottom: 12px;
}
.service-card p { color: var(--ink-soft); font-size: 0.98rem; }

.service-card ul {
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--gradient);
  border-radius: 50%;
}

/* -------------------- Approach band -------------------- */
.approach {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.approach::before {
  content: "";
  position: absolute;
  inset: -20% 30% auto auto;
  width: 50vw;
  max-width: 700px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(51,85,255,0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.approach::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 45vw;
  max-width: 560px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(139,92,246,0.24), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.approach .wrap { position: relative; z-index: 1; }

.approach .section-head h2,
.approach .section-head .desc { color: var(--white); }
.approach .section-head .desc { opacity: 0.68; }
.approach .eyebrow-label span { -webkit-text-fill-color: initial; background: none; color: #a9b4ff; }
.approach .eyebrow-label::before { box-shadow: 0 0 0 4px rgba(255,255,255,0.1); }

.approach-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border-radius: 18px;
  overflow: hidden;
}
.approach-item {
  background: rgba(255,255,255,0.03);
  padding: 30px 26px;
}
.approach-item h4 {
  color: var(--white);
  font-size: 1.08rem;
  margin-bottom: 12px;
}
.approach-item p {
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* -------------------- About -------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 56px;
}
.about-grid h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-bottom: 26px;
  max-width: 20ch;
}
.about-grid .body-copy p { margin-bottom: 18px; color: var(--ink-soft); font-size: 1.02rem; }
.about-grid .body-copy p:last-child { margin-bottom: 0; }

.about-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.about-card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--gradient);
}
.about-card dl { margin: 0; }
.about-card .fact { padding: 18px 0; border-bottom: 1px solid var(--line); }
.about-card .fact:last-child { border-bottom: none; padding-bottom: 0; }
.about-card .fact:first-child { padding-top: 4px; }
.about-card dt {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
.about-card dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

/* -------------------- Contact -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 48px;
  align-items: start;
}

.contact-form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-info {
  position: relative;
  background: var(--ink);
  color: var(--white);
  border-radius: 20px;
  padding: 36px;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(51,85,255,0.35), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.contact-info h3 { font-size: 1.25rem; margin-bottom: 24px; position: relative; z-index: 1; }
.contact-info .info-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  align-items: flex-start;
}
.contact-info .info-row:first-of-type { border-top: none; padding-top: 0; }
.contact-info .info-row svg {
  width: 20px; height: 20px;
  color: #a9b4ff;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info .info-row div { font-size: 0.98rem; }
.contact-info .info-row a { text-decoration: none; color: var(--white); }
.contact-info .info-row a:hover { color: #a9b4ff; }
.contact-info .info-row .label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 3px;
}

.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 9px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.field textarea { resize: vertical; min-height: 128px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 16px;
}

.form-status {
  margin-top: 18px;
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}
.form-status.success { display: block; color: #1a7d3a; }
.form-status.error { display: block; color: #c0392b; }

/* -------------------- Footer -------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.footer-brand img { width: 20px; height: 20px; }
.footer-links { display: flex; gap: 26px; }
.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--accent); }

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; margin: 0 auto; }
  .section-head { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .approach-list { grid-template-columns: repeat(2, 1fr); }
  .service-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-ghost { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .approach-list { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .contact-form-panel { padding: 28px; }
}

.main-nav.open {
  display: flex;
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 20px var(--gutter);
  gap: 6px;
}
