/* ============================================================
   AYKHAN.NET - LANDING PAGE
   Theme-aware (dark / light). Scoped, framework-free.
   ============================================================ */

/* ---------- Brand + theme tokens ---------- */
:root {
  /* Brand (constant across themes) */
  --first-color:  #235aa6;  /* primary blue   */
  --second-color: #1c1d25;  /* near-black ink */
  --third-color:  #f3f3f3;  /* light          */
  --fourth-color: #f06449;  /* coral accent   */

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* DARK (default) */
:root,
:root[data-theme="dark"] {
  --bg:          #0f1015;
  --surface:     #15161d;
  --surface-2:   rgba(243, 243, 243, 0.035);
  --text:        #e7e8ee;
  --text-soft:   #9a9cab;
  --heading:     #ffffff;
  --line:        rgba(243, 243, 243, 0.10);
  --card-line:   rgba(243, 243, 243, 0.09);
  --grid-line:   rgba(243, 243, 243, 0.10);
  --glow:        rgba(35, 90, 166, 0.42);
  --nav-bg:      rgba(15, 16, 21, 0.72);
  --accent-name: #6ea0e6;
  --chip-bg:     rgba(243, 243, 243, 0.05);
  --shadow:      0 12px 40px -18px rgba(0, 0, 0, 0.8);
}

/* LIGHT */
:root[data-theme="light"] {
  --bg:          #f4f5f7;
  --surface:     #ffffff;
  --surface-2:   #ffffff;
  --text:        #34384a;
  --text-soft:   #5d6276;
  --heading:     #1c1d25;
  --line:        rgba(28, 29, 37, 0.10);
  --card-line:   rgba(28, 29, 37, 0.10);
  --grid-line:   rgba(28, 29, 37, 0.055);
  --glow:        rgba(35, 90, 166, 0.16);
  --nav-bg:      rgba(244, 245, 247, 0.78);
  --accent-name: #235aa6;
  --chip-bg:     #ffffff;
  --shadow:      0 14px 40px -22px rgba(28, 29, 37, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--card-line);
  background: var(--surface-2);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.brand img { width: 1.55rem; height: 1.55rem; display: block; }
.brand:hover .brand__logo { border-color: var(--first-color); background: rgba(35, 90, 166, 0.07); }
.brand__tld { color: var(--first-color); }

.nav-right { display: flex; align-items: center; gap: 1.6rem; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--heading); }

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9px;
  border: 1px solid var(--card-line);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.theme-toggle:hover { border-color: var(--first-color); color: var(--first-color); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 620px) {
  .nav-links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.landing-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  padding: clamp(6.5rem, 8vw, 9rem) 0 clamp(3rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  background: var(--bg);
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 75% 18%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 75% 18%, #000 35%, transparent 78%);
}
.landing-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -22%;
  right: -8%;
  width: 48rem;
  height: 48rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero-content { max-width: 36rem; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.6rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-soft);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fourth-color);
  box-shadow: 0 0 0 4px rgba(240, 100, 73, 0.18);
}

.hero-name {
  margin: 0;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--heading);
}
.hero-name .accent { color: var(--accent-name); }

.hero-role {
  margin: 1.1rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fourth-color);
}
.hero-subtitle {
  margin: 1.4rem 0 0;
  max-width: 33rem;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-soft);
  text-wrap: pretty;
}

/* Buttons */
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.18s ease; }
.btn--primary {
  background: var(--first-color);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(35, 90, 166, 0.8);
}
.btn--primary:hover {
  background: #2b6bc2;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(35, 90, 166, 0.9);
}
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--card-line);
}
.btn--ghost:hover {
  border-color: var(--first-color);
  background: var(--surface-2);
  transform: translateY(-2px);
}

/* Hero cards */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.hero-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.3rem 1.25rem;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(35, 90, 166, 0.55);
  background: rgba(35, 90, 166, 0.08);
}
.hero-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 9px;
  background: rgba(35, 90, 166, 0.16);
  color: var(--accent-name);
}
.hero-card__icon svg { width: 1.25rem; height: 1.25rem; }
.hero-card__title { margin: 0; font-size: 1.02rem; font-weight: 600; color: var(--heading); }
.hero-card__desc {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--text-soft);
}
.hero-card:nth-child(2),
.hero-card:nth-child(3) { transform: translateY(1.4rem); }
.hero-card:nth-child(2):hover,
.hero-card:nth-child(3):hover { transform: translateY(calc(1.4rem - 4px)); }

/* ============================================================
   GENERIC SECTIONS
   ============================================================ */
.section { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--surface); }

.section-head { margin-bottom: 2.6rem; max-width: 40rem; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--first-color);
}
.section-eyebrow::before {
  content: ""; width: 1.6rem; height: 1px; background: var(--first-color); display: inline-block;
}
.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.section-lead {
  margin: 0.9rem 0 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-soft);
  text-wrap: pretty;
}

/* placeholder helper (mark where your real content goes) */
.ph {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  opacity: 0.85;
}

/* ---------- Hero logo feature ---------- */
.hero-figure {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-frame {
  position: relative;
  width: min(100%, 23rem);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
/* soft brand glow */
.hero-frame::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  filter: blur(6px);
}
/* centered crosshair guides */
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--grid-line), var(--grid-line)) center / 1px 100% no-repeat,
    linear-gradient(var(--grid-line), var(--grid-line)) center / 100% 1px no-repeat;
  mask-image: radial-gradient(circle at center, transparent 28%, #000 30%, #000 60%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at center, transparent 28%, #000 30%, #000 60%, transparent 74%);
}

.hero-frame__logo {
  width: 58%;
  filter: drop-shadow(0 16px 36px rgba(35, 90, 166, 0.35));
}

/* four registration corner marks */
.hero-frame__mark {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--first-color);
}
.hero-frame__mark.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-frame__mark.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero-frame__mark.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero-frame__mark.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* dimension tick labels - one on each side */
.hero-frame__dim {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}
.hero-frame__dim.top {
  top: -0.25rem; left: 50%;
  transform: translate(-50%, -100%);
}
.hero-frame__dim.bottom {
  bottom: -0.25rem; left: 50%;
  transform: translate(-50%, 100%);
}
.hero-frame__dim.left {
  top: 50%; left: -0.25rem;
  transform: translate(-100%, -50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.hero-frame__dim.right {
  top: 50%; right: -0.25rem;
  transform: translate(100%, -50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ---------- Journey ---------- */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.journey-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.6rem 1.5rem;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.journey-card:hover { transform: translateY(-4px); border-color: var(--first-color); }
.journey-card__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--first-color);
}
.journey-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 10px;
  background: rgba(35, 90, 166, 0.16);
  color: var(--accent-name);
}
.journey-card__icon svg { width: 1.35rem; height: 1.35rem; }
.journey-card__title { margin: 0; font-size: 1.18rem; font-weight: 600; color: var(--heading); }
.journey-card__desc {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-soft);
}
.journey-card__arrow {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 1.1rem; height: 1.1rem;
  color: var(--text-soft);
  transition: transform 0.18s ease, color 0.18s ease;
}
.journey-card:hover .journey-card__arrow { transform: translate(2px, -2px); color: var(--first-color); }

/* ---------- Certificates & badges ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cert-card:hover { transform: translateY(-4px); border-color: rgba(240, 100, 73, 0.55); }
.cert-card__mark {
  flex: none;
  width: 2.8rem; height: 2.8rem;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(240, 100, 73, 0.14);
  color: var(--fourth-color);
}
.cert-card__mark svg { width: 1.35rem; height: 1.35rem; }
.cert-card__body { display: flex; flex-direction: column; gap: 0.2rem; }
.cert-card__title { font-weight: 600; color: var(--heading); }
.cert-card__meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-soft); }

/* ---------- Discover / dive deeper ---------- */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: 1rem;
}
.discover-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.discover-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(35, 90, 166, 0.55);
  background: rgba(35, 90, 166, 0.07);
}
.discover-tile__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 10px;
  background: rgba(35, 90, 166, 0.16);
  color: var(--accent-name);
}
.discover-tile__icon svg { width: 1.35rem; height: 1.35rem; }
.discover-tile__title { margin: 0; font-size: 1.08rem; font-weight: 600; color: var(--heading); }
.discover-tile__desc {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--text-soft);
}
.discover-tile__arrow {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 1.05rem; height: 1.05rem;
  color: var(--text-soft);
  transition: transform 0.18s ease, color 0.18s ease;
}
.discover-tile:hover .discover-tile__arrow { transform: translate(2px, -2px); color: var(--first-color); }
.tag-new {
  position: absolute; top: 1.35rem; right: 1.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--fourth-color);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.2rem, 4vw, 3.2rem);
  border-radius: 18px;
  border: 1px solid var(--card-line);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(35, 90, 166, 0.16), transparent 60%),
    var(--surface-2);
  box-shadow: var(--shadow);
}
.contact__title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--heading); }
.contact__sub { margin: 0.7rem 0 0; color: var(--text-soft); line-height: 1.6; }
.contact__links { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer .brand { font-size: 0.98rem; }
.site-footer__note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero-content { max-width: none; }
  .landing-hero::after { right: -30%; top: -10%; }
  .contact { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: 1fr; }
  .hero-frame { width: min(72%, 17rem); }
}
@media (max-width: 560px) {
  .landing-hero { min-height: auto; }
  .hero-cards { gap: 0.7rem; }
  .hero-card { padding: 1.05rem 1rem; }
  .hero-card:nth-child(2),
  .hero-card:nth-child(3) { transform: none; }
  .hero-card:nth-child(2):hover,
  .hero-card:nth-child(3):hover { transform: translateY(-4px); }
  .hero-actions { gap: 0.65rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .hero-card, .journey-card, .cert-card, .discover-tile,
  .btn svg, .journey-card__arrow, .discover-tile__arrow { transition: none; }
}
