/* ============================================================
   Edge Tech Holding — styles
   Dark, premium corporate aesthetic. No dependencies.
   ============================================================ */

:root {
  --bg: #0a0e17;
  --bg-alt: #0d1220;
  --surface: #121826;
  --surface-2: #161d2e;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8edf6;
  --text-muted: #9aa8bd;
  --text-dim: #6b7688;
  --teal: #5eead4;
  --indigo: #818cf8;
  --grad: linear-gradient(120deg, #5eead4 0%, #6366f1 100%);
  --grad-soft: linear-gradient(120deg, rgba(94,234,212,0.14), rgba(99,102,241,0.14));
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-text { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.12; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 14px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--teal); color: #04120f; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  font-family: inherit;
}
.btn-primary { background: var(--grad); color: #051013; box-shadow: 0 8px 30px -8px rgba(94,234,212,0.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(99,102,241,0.55); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 14, 23, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; }
.brand-text { font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand-accent { color: var(--teal); margin-left: 3px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.94rem; color: var(--text-muted); font-weight: 500; transition: color .2s; position: relative; }
.nav a:hover { color: var(--text); }
.nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad); transition: width .25s var(--ease);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: 9px 20px; border: 1px solid var(--border-strong); border-radius: 100px; color: var(--text); }
.nav-cta:hover { border-color: var(--teal); color: var(--teal); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; background: rgba(13,18,32,0.98); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); padding: 8px 24px 20px;
}
.mobile-nav a { padding: 13px 0; color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav.open { display: flex; }

/* ===== Hero ===== */
.hero { position: relative; padding: 168px 0 96px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.22), transparent 60%),
              radial-gradient(ellipse at 30% 40%, rgba(94,234,212,0.18), transparent 55%);
  filter: blur(20px);
}
.hero-inner { position: relative; text-align: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 800; margin-bottom: 22px; }
.hero-sub { max-width: 640px; margin: 0 auto 34px; color: var(--text-muted); font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.hero-stats dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-dim); margin-bottom: 6px; }
.hero-stats dd { font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 600; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 16px; }
.section-lead { color: var(--text-muted); font-size: 1.05rem; }

h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { color: var(--text-muted); margin-bottom: 16px; }
.about-highlights { list-style: none; display: grid; gap: 16px; }
.about-highlights li {
  display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: transform .3s var(--ease), border-color .3s;
}
.about-highlights li:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.hl-icon { color: var(--teal); font-size: 0.9rem; margin-top: 4px; }
.about-highlights h3 { font-size: 1.06rem; margin-bottom: 5px; }
.about-highlights p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; padding: 34px 30px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), border-color .35s;
}
.card::before {
  content: ''; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card-num { font-family: 'Sora'; font-size: 0.85rem; font-weight: 700; color: var(--teal); letter-spacing: 0.1em; }
.card h3 { font-size: 1.28rem; margin: 12px 0 12px; }
.card p { color: var(--text-muted); margin-bottom: 18px; }
.card-list { list-style: none; display: grid; gap: 9px; }
.card-list li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--text-muted); }
.card-list li::before { content: '▸'; position: absolute; left: 0; color: var(--indigo); }

/* ===== Portfolio ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pf-card {
  padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.pf-card:hover { transform: translateY(-5px); border-color: var(--teal); background: var(--surface-2); }
.pf-tag {
  display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
  color: var(--teal); background: rgba(94,234,212,0.1); padding: 5px 11px; border-radius: 100px; margin-bottom: 16px;
}
.pf-card h3 { font-size: 1.14rem; margin-bottom: 9px; }
.pf-card p { color: var(--text-muted); font-size: 0.92rem; }
.portfolio-note { text-align: center; margin-top: 40px; color: var(--text-muted); }
.portfolio-note a { color: var(--teal); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s; }
.portfolio-note a:hover { border-bottom-color: var(--teal); }

/* ===== Model flow ===== */
.model-flow { display: flex; align-items: stretch; justify-content: center; gap: 12px; flex-wrap: wrap; }
.flow-step {
  flex: 1 1 200px; max-width: 250px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center; transition: transform .3s var(--ease), border-color .3s;
}
.flow-step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.flow-num {
  display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--grad); color: #051013; font-family: 'Sora'; font-weight: 700;
}
.flow-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.flow-step p { color: var(--text-muted); font-size: 0.9rem; }
.flow-arrow { display: grid; place-items: center; color: var(--indigo); font-size: 1.5rem; }

/* ===== Contact ===== */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 52px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 24px; position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; top: -120px; right: -120px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(99,102,241,0.18), transparent 70%); pointer-events: none;
}
.contact-copy { position: relative; }
.contact-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.contact-copy p { color: var(--text-muted); margin-bottom: 24px; }
.contact-email { color: var(--teal); font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-email:hover { border-bottom-color: var(--teal); }
.contact-form { position: relative; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); color: var(--text); font-family: inherit; font-size: 0.95rem; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(94,234,212,0.15);
}
.form-note { font-size: 0.9rem; min-height: 1.2em; }
.form-note.ok { color: var(--teal); }
.form-note.err { color: #fca5a5; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 56px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.footer-brand { max-width: 360px; }
.footer-brand .brand-text { font-size: 1.14rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 12px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: var(--text-muted); font-size: 0.92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; }
.footer-bottom p { color: var(--text-dim); font-size: 0.82rem; }
.footer-fine { max-width: 520px; text-align: right; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; gap: 36px; padding: 40px 30px; }
  .flow-arrow { transform: rotate(90deg); }
  .footer-fine { text-align: left; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 140px 0 72px; }
  .section { padding: 72px 0; }
  .hero-stats { gap: 32px; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 30px 22px; }
}
