/* ---------------------------------------------------------
   Hanedan Teknoloji — draft corporate site
   Palette: deep navy ground, electric teal accent, warm white text
--------------------------------------------------------- */

:root {
  --bg-0: #0b1220;
  --bg-1: #0f1b30;
  --bg-2: #131f38;
  --line: rgba(148, 187, 233, 0.14);
  --text-0: #eef3fb;
  --text-1: #b7c3d9;
  --text-2: #8393b0;
  --accent: #2fd4c8;
  --accent-2: #5b8cff;
  --accent-soft: rgba(47, 212, 200, 0.14);

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1120px;
  --radius: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); max-width: 18ch; }
h3 { font-size: 1.15rem; margin-bottom: .4em; }

p { color: var(--text-1); }
a { color: inherit; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent-soft); color: var(--text-0); }

/* ---------- Background field (signature element) ---------- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 8%, rgba(91, 140, 255, .16), transparent 60%),
    radial-gradient(50% 45% at 90% 25%, rgba(47, 212, 200, .12), transparent 60%),
    var(--bg-0);
}
.bg-field__lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.bg-field__lines .line {
  fill: none;
  stroke: url(#lineGrad);
  stroke-width: 1.4;
}
.line--1, .line--2, .line--3 { stroke: var(--accent); opacity: .18; }
.line--2 { stroke: var(--accent-2); opacity: .14; }
.bg-field__lines .nodes circle { fill: var(--accent); opacity: .35; }

.bg-field__particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: drift linear infinite;
}
@keyframes drift {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .5; }
  90% { opacity: .35; }
  100% { transform: translateY(-140vh) translateX(20px); opacity: 0; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, .55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-color: var(--line); background: rgba(11, 18, 32, .82); }
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  color: var(--text-0);
  margin-right: auto;
  font-size: 1.02rem;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  text-decoration: none;
  color: var(--text-1);
  font-size: .92rem;
  transition: color .2s;
}
.nav__links a:hover { color: var(--text-0); }
.nav__cta { display: inline-flex; }
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; margin: 0 7px; background: var(--text-0); border-radius: 2px; }
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 18px;
  border-top: 1px solid var(--line);
}
.nav__mobile a {
  text-decoration: none;
  color: var(--text-1);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.nav__mobile.is-open { display: flex; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .94rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06131c;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(47, 212, 200, .55); }
.btn--ghost { border-color: var(--line); color: var(--text-0); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 18px; font-size: .85rem; }

/* ---------- Layout helpers ---------- */
.section { position: relative; z-index: 1; padding: 108px 24px; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015) 20%, rgba(255,255,255,.015) 80%, transparent); }
.section__inner { max-width: var(--container); margin: 0 auto; }
.section__inner--narrow { max-width: 640px; text-align: center; }
.section--cta { text-align: center; }
.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.lead { font-size: 1.08rem; max-width: 62ch; }
.section--cta .lead { margin: 0 auto 32px; }
.text-accent { color: var(--accent); }
.hide-mobile { display: inline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 100px;
}
.hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  max-width: 16ch;
  margin-bottom: .4em;
}
.hero__subtitle { font-size: 1.15rem; max-width: 52ch; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero__scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
}
.hero__scroll-hint span {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- Stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat-row__item { display: flex; flex-direction: column; gap: 6px; }
.stat-row__value { font-family: var(--font-display); font-weight: 700; color: var(--text-0); font-size: 1.15rem; }
.stat-row__label { color: var(--text-2); font-size: .88rem; }
.founder-note {
  margin-top: 28px;
  font-size: .85rem;
  font-family: var(--font-mono);
  color: var(--text-2);
}
.founder-note a { color: var(--accent); text-decoration: none; }
.founder-note a:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(47,212,200,.4); }
.card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.card p { font-size: .95rem; margin: 0; }
.card-grid__note { margin-top: 28px; font-size: .82rem; color: var(--text-2); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 0; }
.steps__item {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.steps__item:last-child { border-bottom: 1px solid var(--line); }
.steps__num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: .95rem;
  padding-top: 3px;
  min-width: 34px;
}
.steps__item p { margin: 0; font-size: .95rem; }

/* ---------- Contact form ---------- */
.contact-form { text-align: left; margin-top: 36px; display: grid; gap: 18px; }
.contact-form__row { display: flex; flex-direction: column; gap: 8px; }
.contact-form__row label { font-size: .85rem; color: var(--text-2); font-family: var(--font-mono); }
.contact-form__row input,
.contact-form__row textarea {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: .96rem;
  resize: vertical;
  transition: border-color .2s;
}
.contact-form__row input:focus,
.contact-form__row textarea:focus { outline: none; border-color: var(--accent); }
.contact-form__submit { justify-self: start; }
.contact-form__note { font-size: .78rem; color: var(--text-2); margin: 4px 0 0; }
.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: .95rem;
}
.contact-direct a { color: var(--accent); text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }
.contact-form__success {
  margin-top: 36px;
  padding: 26px;
  border: 1px solid rgba(47,212,200,.35);
  background: var(--accent-soft);
  border-radius: var(--radius);
}
.contact-form__success h3 { margin-bottom: .3em; }
.contact-form__success p { margin: 0; color: var(--text-1); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 26px 24px 40px; }
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--text-2);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .hide-mobile { display: none; }
  .hero { min-height: 82vh; padding-top: 20px; }
  .section { padding: 76px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-hint span, .particle { animation: none; }
}

/* Member-supplied education/technology banner */
.brand-banner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.brand-banner__frame { margin: 0; overflow: hidden; border: 1px solid rgba(32,199,234,.3); border-radius: 20px; background: #071521; box-shadow: 0 20px 65px -35px rgba(20,174,216,.35); }
.brand-banner__image { width: 100%; height: auto; }
.brand-banner__caption { display: none; }
.brand-banner__footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 20px 28px; border-top: 1px solid rgba(32,199,234,.15); color: var(--text-1); font-size: .88rem; }
.brand-banner__link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #21cbed; text-decoration: none; font-weight: 600; }
.brand-banner__link:hover { text-decoration: underline; }
.brand-banner__link:focus-visible { outline: 2px solid #21cbed; outline-offset: 5px; border-radius: 3px; }
@media (max-width: 760px) {
  .brand-banner { padding: 0 20px; }
  .brand-banner__frame { border-radius: 16px; }
  .brand-banner__caption { display: block; padding: 24px 22px 8px; }
  .brand-banner__caption h2 { font-size: clamp(1.4rem,6vw,2rem); max-width: none; overflow-wrap: anywhere; }
  .brand-banner__caption h2 span { color: #21cbed; }
  .brand-banner__caption p { font-size: 1rem; }
  .brand-banner__caption .brand-banner__name { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #21cbed; margin: 0 0 16px; }
  .brand-banner__footer { padding: 16px 22px; }
}
