:root {
  --bg-0: #00040e;
  --bg-1: #000a1f;
  --bg-2: #000814;
  --accent: #1e63ff;
  --accent-2: #3b82f6;
  --accent-soft: #60a5fa;
  --accent-glow: rgba(30, 99, 255, 0.35);
  --linkedin: #2b6cdf;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-mute: rgba(255, 255, 255, 0.48);
  --hairline: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.035);
  --card-bg-hover: rgba(30, 99, 255, 0.09);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-border-hover: rgba(30, 99, 255, 0.55);
  --radius: 16px;
  --radius-lg: 22px;
  --tap: 64px;
  --max-w: 480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(30, 99, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 55% 50% at 110% 10%, rgba(59, 130, 246, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 45% at -10% 35%, rgba(30, 99, 255, 0.12), transparent 75%),
    linear-gradient(180deg, #00030c 0%, #000a1f 55%, #00040e 100%);
  background-attachment: fixed;
}

/* -------- Decorative background layer -------- */

.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow {
  position: absolute;
  filter: blur(60px);
  opacity: 0.6;
  border-radius: 50%;
}

.glow--top {
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(30, 99, 255, 0.55), transparent 70%);
}

.glow--left {
  top: 30%;
  left: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.22), transparent 70%);
  opacity: 0.7;
}

.bg-decor .wave,
.bg-decor .mesh,
.bg-decor .cloud {
  position: absolute;
}

.bg-decor .wave {
  left: -40px;
  top: 16%;
  width: 360px;
  height: 72%;
  opacity: 0.75;
}

.bg-decor .mesh {
  right: -60px;
  top: 10%;
  width: 420px;
  height: 76%;
  opacity: 0.55;
}

.bg-decor .cloud {
  right: 2%;
  bottom: 14%;
  width: 320px;
  height: 200px;
  opacity: 0.45;
}

@media (max-width: 640px) {
  .bg-decor .wave  { width: 200px; opacity: 0.5; }
  .bg-decor .mesh  { width: 240px; opacity: 0.35; }
  .bg-decor .cloud { width: 200px; opacity: 0.25; right: -10px; bottom: 18%; }
  .glow--top { width: 460px; }
}

/* -------- Layout -------- */

main {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* -------- Brand header -------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 30px -12px rgba(0, 0, 0, 0.8);
}

.brand__divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.22);
}

.brand__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

/* -------- Eyebrow pill -------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(30, 99, 255, 0.1);
  border: 1px solid rgba(30, 99, 255, 0.3);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(59, 130, 246, 0.04); }
}

/* -------- Headline + tagline -------- */

.headline {
  font-size: clamp(42px, 10vw, 60px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  text-wrap: balance;
}

.headline__accent {
  display: block;
  background: linear-gradient(180deg, #5a95ff 0%, #1e63ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 0 40px;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 40ch;
  text-wrap: balance;
}

/* -------- Capability chips (AI Systems / Data Foundations / Cloud Delivery) -------- */

.chips {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.chip svg {
  width: 15px;
  height: 15px;
  color: var(--accent-soft);
  flex-shrink: 0;
}

/* -------- Section divider label -------- */

.section-label {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label::before,
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}

/* -------- Link cards -------- */

.links {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: var(--tap);
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease,
    box-shadow 220ms ease, background-color 160ms ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(59, 130, 246, 0.08) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 500ms ease;
  pointer-events: none;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 12px 34px -14px var(--accent-glow);
  outline: none;
  transform: translateY(-1px);
}

.link-card:hover::before,
.link-card:focus-visible::before {
  transform: translateX(120%);
}

.link-card:active { transform: translateY(0); }

.link-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(30, 99, 255, 0.12);
  border: 1px solid rgba(30, 99, 255, 0.28);
  border-radius: 12px;
  color: var(--accent-soft);
}

.link-card__icon svg { width: 20px; height: 20px; }

.link-card__icon--linkedin {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
}

.link-card__icon--linkedin svg { width: 22px; height: 22px; }

.link-card__icon--brand {
  background: #000;
  border-color: rgba(255, 255, 255, 0.12);
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.link-card__icon--brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}

.link-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-card__eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 4px;
}

.link-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.link-card__sub {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__chev {
  color: var(--text-mute);
  flex-shrink: 0;
  transition: transform 160ms ease, color 160ms ease;
}

.link-card:hover .link-card__chev,
.link-card:focus-visible .link-card__chev {
  color: var(--accent-soft);
  transform: translateX(3px);
}

/* Primary card (contact) — brand-colored standout */
.link-card--primary {
  background: linear-gradient(135deg, rgba(30, 99, 255, 0.22) 0%, rgba(30, 99, 255, 0.08) 100%);
  border-color: rgba(30, 99, 255, 0.45);
  box-shadow: 0 10px 30px -14px var(--accent-glow);
}

.link-card--primary .link-card__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.link-card--primary .link-card__sub {
  color: rgba(255, 255, 255, 0.82);
}

.link-card--primary:hover,
.link-card--primary:focus-visible {
  border-color: rgba(30, 99, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(30, 99, 255, 0.6), 0 18px 48px -16px var(--accent-glow);
}

/* -------- Footer -------- */

footer {
  position: relative;
  z-index: 1;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
}

.footer__url {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__url a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer__url a:hover { color: var(--accent-soft); border-color: currentColor; }

.footer__url .globe { opacity: 0.85; }

.footer__copy {
  color: var(--text-mute);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* -------- Modal -------- */

dialog.contact-dialog {
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 0;
  background: linear-gradient(180deg, #04122b 0%, #010a1e 100%);
  color: var(--text);
  max-width: 360px;
  width: calc(100% - 40px);
  box-shadow:
    0 0 0 1px rgba(30, 99, 255, 0.25),
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 120px -10px var(--accent-glow);
}

dialog.contact-dialog::backdrop {
  background: rgba(0, 4, 20, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dialog-inner {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.dialog-inner h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dialog-phone {
  margin: -4px 0 0;
  color: var(--text-dim);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.dialog-actions .btn--primary {
  grid-column: 1 / -1;
}

.dialog-phone {
  font-size: 14px;
  word-break: break-word;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 140ms ease, background-color 160ms ease,
    box-shadow 180ms ease, border-color 160ms ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #2b75ff;
  box-shadow: 0 14px 36px -10px var(--accent-glow);
  outline: none;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--card-border);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  outline: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid transparent;
  min-height: 40px;
  font-size: 13px;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.btn:active { transform: translateY(1px); }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  .link-card::before { display: none; }
}
