/* ==========================================================================
   Effix — "Efficiency, fixed."  |  Dark premium redesign
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:        #060a0e;
  --bg-2:      #0a1117;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* Ink */
  --ink:       #eef5f6;
  --ink-soft:  #9db1b8;
  --ink-dim:   #6d8189;

  /* Brand */
  --coral:      #ff5f40;
  --coral-2:    #ff8a5b;
  --coral-dim:  #ffb3a3;
  --teal:       #1ad6c6;
  --teal-2:     #37e7c8;
  --teal-dim:   #7ff0e4;

  /* Effects */
  --glow-teal:  0 0 0 1px rgba(26, 214, 198, 0.35), 0 18px 50px -18px rgba(26, 214, 198, 0.55);
  --glow-coral: 0 14px 40px -12px rgba(255, 95, 64, 0.6);
  --radius:     16px;
  --radius-lg:  22px;
  --ease:       cubic-bezier(0.22, 0.75, 0.2, 1);

  --grad-brand: linear-gradient(100deg, var(--teal) 0%, var(--teal-2) 45%, var(--coral) 115%);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Ambient background — fixed glows + faint grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 12% -8%, rgba(26, 214, 198, 0.16), transparent 60%),
    radial-gradient(55vw 55vw at 92% 8%, rgba(255, 95, 64, 0.13), transparent 58%),
    radial-gradient(70vw 50vw at 50% 118%, rgba(26, 214, 198, 0.10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 26px; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad-brand);
  z-index: 100; box-shadow: 0 0 14px rgba(26, 214, 198, 0.7);
  transition: width 0.08s linear;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 10, 14, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
header.scrolled {
  background: rgba(6, 10, 14, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: baseline; gap: 0; }
.logo {
  font-family: "Sora", sans-serif;
  font-size: 1.42rem; font-weight: 800; letter-spacing: -0.6px;
  color: var(--ink); text-decoration: none; position: relative;
}
.logo span {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline {
  margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line-2);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.4px;
  color: var(--teal-dim); white-space: nowrap; text-transform: uppercase;
}

nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  position: relative; padding: 6px 0; transition: color 0.2s var(--ease);
}
nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad-brand); border-radius: 2px; transition: width 0.28s var(--ease);
}
nav a:hover { color: var(--ink); }
nav a:hover::after, nav a.active::after { width: 100%; }
nav a.active { color: var(--ink); }

.nav-cta {
  background: var(--coral); color: #150402 !important; padding: 9px 18px;
  border-radius: 10px; font-weight: 700; font-size: 0.9rem !important;
  box-shadow: var(--glow-coral); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 46px -12px rgba(255, 95, 64, 0.75); color: #150402 !important; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 118px 0 92px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  top: -180px; right: -120px; z-index: -1;
  background: radial-gradient(circle, rgba(255, 95, 64, 0.22), transparent 62%);
  filter: blur(20px); animation: float 14s ease-in-out infinite;
}
.hero::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  bottom: -200px; left: -140px; z-index: -1;
  background: radial-gradient(circle, rgba(26, 214, 198, 0.20), transparent 62%);
  filter: blur(20px); animation: float 18s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(24px, -28px); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 12px; margin-bottom: 26px;
  border: 1px solid var(--line-2); border-radius: 100px;
  background: var(--surface); backdrop-filter: blur(6px);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3px; color: var(--ink-soft);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(26, 214, 198, 0.18); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(26, 214, 198, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(26, 214, 198, 0.04); }
}
.eyebrow b { color: var(--teal-dim); font-weight: 700; }

.hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.5rem, 5.2vw, 4.15rem); line-height: 1.05;
  letter-spacing: -1.8px; font-weight: 800; max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 1.22rem; color: var(--ink-soft); max-width: 40ch;
  margin: 26px 0 38px; line-height: 1.6;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--coral); color: #150402; text-decoration: none;
  padding: 15px 28px; border-radius: 12px; font-weight: 700; font-size: 1rem;
  box-shadow: var(--glow-coral); transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  position: relative;
}
.btn::after { content: "→"; font-size: 1.05em; transition: transform 0.22s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 52px -12px rgba(255, 95, 64, 0.8); }
.btn:hover::after { transform: translateX(4px); }

.btn.ghost {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-2);
  box-shadow: none; backdrop-filter: blur(6px);
}
.btn.ghost::after { content: none; }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal-dim); box-shadow: var(--glow-teal); transform: translateY(-3px); }

/* Hero art */
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-art {
  width: 100%; height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}
.hero-art-frame {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  backdrop-filter: blur(8px); position: relative;
}
.hero-art-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); padding: 1px;
  background: linear-gradient(150deg, rgba(26,214,198,0.5), transparent 40%, rgba(255,95,64,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 84px 0; position: relative; }
section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.9px;
  font-weight: 800; margin-bottom: 12px; line-height: 1.12;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 2.4px; font-size: 0.76rem;
  font-weight: 700; color: var(--teal-dim); margin-bottom: 16px;
}
.kicker::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}
.sub { color: var(--ink-soft); max-width: 62ch; margin-bottom: 44px; font-size: 1.1rem; }

/* ==========================================================================
   Cards
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease), background 0.32s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,214,198,0.5), transparent);
  opacity: 0; transition: opacity 0.32s var(--ease);
}
.card:hover {
  transform: translateY(-6px); border-color: var(--line-2);
  background: var(--surface-2);
}
.card:hover::before { opacity: 1; }
.card h3 {
  font-family: "Sora", sans-serif; font-size: 1.18rem; font-weight: 700;
  margin-bottom: 10px; letter-spacing: -0.3px;
}
.card p { color: var(--ink-soft); font-size: 0.98rem; }

.card .big {
  font-family: "Sora", sans-serif; font-size: 2.9rem; font-weight: 800; line-height: 1.05;
  letter-spacing: -1.5px; margin-bottom: 6px;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.card .src { display: block; margin-top: 16px; font-size: 0.8rem; color: var(--ink-dim); }
.card .src a { color: var(--teal-dim); text-decoration: none; border-bottom: 1px solid transparent; }
.card .src a:hover { border-bottom-color: var(--teal); }

/* Icons */
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 20px;
  border: 1px solid var(--line-2);
}
.card-icon.teal  { background: rgba(26, 214, 198, 0.10); color: var(--teal-dim); box-shadow: inset 0 0 20px rgba(26,214,198,0.12); }
.card-icon.coral { background: rgba(255, 95, 64, 0.10); color: var(--coral-2); box-shadow: inset 0 0 20px rgba(255,95,64,0.12); }
.card-icon svg { width: 28px; height: 28px; }

/* Avatars */
.avatar {
  width: 76px; height: 76px; border-radius: 18px; display: flex;
  align-items: center; justify-content: center; font-family: "Sora", sans-serif;
  font-size: 1.5rem; font-weight: 800; color: #06110f; margin-bottom: 20px;
}
.avatar.teal  { background: linear-gradient(135deg, var(--teal-2), var(--teal)); box-shadow: 0 14px 34px -10px rgba(26,214,198,0.6); }
.avatar.coral { background: linear-gradient(135deg, var(--coral-2), var(--coral)); box-shadow: 0 14px 34px -10px rgba(255,95,64,0.6); color: #1a0602; }

/* ==========================================================================
   Flow diagrams
   ========================================================================== */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.step {
  background: rgba(26, 214, 198, 0.10); color: var(--teal-dim);
  border: 1px solid rgba(26, 214, 198, 0.22); border-radius: 9px;
  padding: 8px 13px; font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
.step.cut {
  background: rgba(255, 95, 64, 0.07); color: var(--coral-dim);
  border: 1px solid rgba(255, 95, 64, 0.2); text-decoration: line-through;
  opacity: 0.72; font-weight: 500;
}
.arrow { color: var(--ink-dim); font-size: 0.95rem; }
.flow-label {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 1.8px;
  font-weight: 700; color: var(--ink-dim); margin-top: 20px;
}
.example-note {
  background: rgba(26, 214, 198, 0.07); border: 1px solid rgba(26, 214, 198, 0.2);
  border-left: 3px solid var(--teal); padding: 16px 20px; border-radius: 0 12px 12px 0;
  font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 40px;
}
.example-note strong { color: var(--ink); }

/* ==========================================================================
   Calculator
   ========================================================================== */
.calc {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px;
}
.calc label { display: block; font-weight: 600; margin: 22px 0 8px; font-size: 0.92rem; color: var(--ink-soft); }
.calc label:first-child { margin-top: 0; }
.calc input[type="number"] {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 1rem; background: rgba(0,0,0,0.25); color: var(--ink); font-family: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.calc input[type="number"]:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,214,198,0.16);
}
.calc input[type="range"] { width: 100%; accent-color: var(--teal); margin-top: 6px; }
.calc .range-val { font-weight: 700; color: var(--teal-dim); }

.results { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.results .card { text-align: center; padding: 24px 18px; }
.results .card .big { font-size: 2.1rem; }
.results .card p { font-size: 0.88rem; }
.calc-note { font-size: 0.82rem; color: var(--ink-dim); margin-top: 22px; line-height: 1.6; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-form label { display: block; font-weight: 600; margin: 18px 0 7px; font-size: 0.92rem; color: var(--ink-soft); }
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: rgba(0,0,0,0.25); color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,214,198,0.16);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form select option { background: var(--bg-2); color: var(--ink); }
.contact-form .btn { border: none; cursor: pointer; }

/* Contact detail links */
a[href^="mailto"] { color: var(--coral-2); text-decoration: none; border-bottom: 1px solid rgba(255,95,64,0.3); }
a[href^="mailto"]:hover { border-bottom-color: var(--coral); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  position: relative; background: rgba(0,0,0,0.35); color: var(--ink-soft);
  padding: 56px 0; margin-top: 40px; border-top: 1px solid var(--line);
}
footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,214,198,0.5), rgba(255,95,64,0.4), transparent);
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer a { color: var(--ink-soft); text-decoration: none; transition: color 0.2s var(--ease); }
footer a:hover { color: var(--ink); }
footer .logo { color: var(--ink); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before, .hero::after, .eyebrow .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art-frame { max-width: 460px; margin: 0 auto; }
  .grid.c3, .grid.c2, .results { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tagline { display: none; }
  .hero { padding: 84px 0 64px; }
  section { padding: 60px 0; }
  .nav { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
  nav ul { gap: 8px 16px; flex-wrap: wrap; }
  .calc { padding: 26px; }
}
