/* ============================================================
   FAWERA — fawera.net
   AI Automation & Integration · dark / clean · violet accent
   Typography: Montserrat (300 display / 400 body)
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-soft: #111016;
  --card: #15141a;
  --card-border: #26242e;
  --text: #ffffff;
  --text-dim: #d6d3de;
  --text-faint: #9a96a6;
  --violet: #3a2266;        /* Fawera brand violet (dark) */
  --violet-mid: #5b35a0;
  --violet-bright: #9b72ea; /* accents / hovers */
  --violet-glow: rgba(91, 53, 160, 0.55);
  --pill: 999px;
  --max: 1240px;
  --pad: clamp(16px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { position: relative; padding: clamp(70px, 12vh, 130px) 0; }

/* ---------- section label:  // label ---------- */
.label {
  display: inline-flex;
  align-items: baseline;
  gap: .55em;
  font-size: clamp(14px, 1.4vw, 19px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .6em;
}
.label::before {
  content: "//";
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--violet-bright);
  font-size: 1.35em;
}

.display {
  font-size: clamp(38px, 6.6vw, 90px);
  font-weight: 300;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: .01em;
  overflow-wrap: break-word;
}

.grad-text {
  background: linear-gradient(90deg, #ffffff 0%, #d9c9ff 45%, var(--violet-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- nav ---------- */
header.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(10,10,12,.92), rgba(10,10,12,.75) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 28px; width: auto; }
.brand span { font-weight: 600; letter-spacing: .22em; font-size: 15px; }
nav.menu { display: flex; align-items: center; gap: clamp(10px, 2vw, 30px); }
nav.menu a {
  font-size: 15px;
  padding: 9px 16px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  transition: border-color .25s, background .25s;
  white-space: nowrap;
}
nav.menu a:hover { border-color: var(--card-border); background: rgba(255,255,255,.04); }
.nav-cta {
  background: linear-gradient(135deg, rgba(91,53,160,.9), rgba(58,34,102,.9));
  border: 1px solid rgba(255,255,255,.35) !important;
  padding: 11px 26px !important;
  font-weight: 500;
}
.nav-cta:hover { background: var(--violet-mid) !important; }
.lang-switch {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--text-faint);
  border: 1px solid var(--card-border) !important;
  padding: 7px 14px !important;
}
.lang-switch:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #6a3fb8 0%, #3a2266 100%);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: var(--pill);
  padding: 15px 36px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, filter .25s;
  box-shadow: 0 0 30px rgba(91,53,160,.3);
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 6px 40px rgba(155,114,234,.35);
}
.btn-ghost {
  background: transparent;
  box-shadow: none;
  border-color: var(--card-border);
  margin-left: 10px;
}

/* ---------- hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  background:
    radial-gradient(1000px 520px at 80% 88%, rgba(91,53,160,.45), transparent 65%),
    radial-gradient(800px 420px at 10% 18%, rgba(58,34,102,.35), transparent 60%),
    radial-gradient(600px 300px at 55% 50%, rgba(40,60,140,.12), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-head { text-align: center; }
.hero-head .pre { display: block; text-align: left; margin-left: 6%; }
.hero-head .post { display: flex; justify-content: flex-end; margin-right: 6%; }
.hero-title {
  font-size: clamp(42px, 8.6vw, 118px);
  font-weight: 300;
  line-height: 1.02;
  text-transform: uppercase;
}
.hero-sub {
  margin-top: clamp(50px, 10vh, 110px);
  display: grid;
  grid-template-columns: 1fr minmax(300px, 490px);
  gap: 40px;
  align-items: end;
}
.hero-sub p { color: var(--text-dim); font-size: 18px; }
.hero-sub .actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-sub .btn-ghost { margin-left: 0; }

/* ---------- about ---------- */
.who-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  align-items: stretch;
  gap: clamp(30px, 5vw, 80px);
}
.who-copy p { color: var(--text-dim); margin-bottom: 1.2em; }
.who-visual {
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(380px 280px at 70% 25%, rgba(91,53,160,.55), transparent 70%),
    radial-gradient(300px 240px at 20% 90%, rgba(58,34,102,.6), transparent 70%),
    var(--card);
  border: 1px solid var(--card-border);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.who-visual img { width: 38%; opacity: .95; filter: drop-shadow(0 0 40px rgba(155,114,234,.45)); }

.stats {
  margin-top: clamp(50px, 8vh, 90px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}
.stat { display: flex; align-items: center; gap: 20px; }
.stat .bubble {
  flex: 0 0 auto;
  width: 112px; height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #211a33, #120f1b 70%);
  border: 1px solid #2d2542;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; font-weight: 500;
  box-shadow: inset 0 0 24px rgba(91,53,160,.3);
  text-align: center;
}
.stat .desc { color: var(--text-dim); font-size: 15.5px; line-height: 1.45; }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 780px);
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}
.services-head { position: sticky; top: 120px; }
.services-head .display { font-size: clamp(36px, 4.4vw, 62px); }
.services-head p { color: var(--text-dim); margin-top: 18px; max-width: 420px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: linear-gradient(160deg, #1a1724 0%, #141219 60%, #0f0c17 100%);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: #3b3057;
  box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 40px rgba(91,53,160,.18);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(91,53,160,.25);
  border: 1px solid rgba(155,114,234,.4);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: auto;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--violet-bright); }
.card h3 { font-size: 20px; font-weight: 500; line-height: 1.3; }
.card p { color: var(--text-dim); font-size: 15.5px; }

/* ---------- use cases ---------- */
.areas {
  background:
    radial-gradient(900px 500px at 85% 40%, rgba(58,34,102,.5), transparent 65%),
    var(--bg);
}
.areas-head { display: grid; grid-template-columns: 1fr minmax(280px, 460px); gap: 40px; align-items: end; }
.areas-head p { color: var(--text-dim); text-align: right; }
.area-grid {
  margin-top: clamp(40px, 7vh, 70px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}
.area {
  background: rgba(14,13,19,.92);
  padding: 30px 28px 34px;
  transition: background .3s;
}
.area:hover { background: rgba(30,24,46,.95); }
.area .tag { color: var(--violet-bright); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.area h3 { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.area p { color: var(--text-dim); font-size: 15px; }

/* ---------- process ---------- */
.onb-head { display: grid; grid-template-columns: 1fr minmax(280px, 460px); gap: 40px; align-items: end; }
.onb-head p { color: var(--text-dim); text-align: right; }
.steps {
  margin-top: clamp(50px, 9vh, 90px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 70px;
}
.step { display: flex; gap: 26px; align-items: flex-start; }
.step .num {
  flex: 0 0 auto;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #211a33, #110e19 70%);
  border: 1px solid #2d2542;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; font-weight: 300;
  box-shadow: inset 0 0 24px rgba(91,53,160,.3);
}
.step h3 { font-size: 18.5px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 15.5px; }

/* ---------- why ---------- */
.why-grid {
  margin-top: clamp(40px, 7vh, 70px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why {
  border-top: 1px solid var(--violet-mid);
  padding-top: 22px;
}
.why h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.why p { color: var(--text-dim); font-size: 15px; }

/* ---------- final CTA ---------- */
.cta {
  background:
    radial-gradient(900px 480px at 50% 100%, rgba(91,53,160,.55), transparent 70%),
    radial-gradient(500px 260px at 20% 100%, rgba(40,60,140,.18), transparent 70%),
    var(--bg);
  text-align: center;
}
.cta p { max-width: 660px; margin: 24px auto 38px; color: var(--text-dim); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid #1c1b22;
  background: linear-gradient(160deg, #0f0d14 0%, #0a0a0c 55%, #100c18 100%);
  padding: 70px 0 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(30px, 6vw, 110px);
  padding-bottom: 60px;
}
.foot-brand img { height: 38px; }
.foot-brand p { color: var(--text-faint); font-size: 14px; margin-top: 16px; max-width: 300px; }
.foot-col h4 { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 15px; margin-bottom: 12px; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid #1c1b22;
  padding: 24px 0;
  color: var(--text-faint);
  font-size: 14px;
}

/* ---------- legal pages ---------- */
.legal-page { padding-top: 160px; padding-bottom: 90px; max-width: 820px; }
.legal-page h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 300; text-transform: uppercase; margin-bottom: 40px; }
.legal-page h2 { font-size: 20px; font-weight: 600; margin: 34px 0 10px; }
.legal-page p { color: var(--text-dim); font-size: 15.5px; }
.legal-page a { color: var(--violet-bright); }

/* ---------- animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .who-grid, .services-grid, .onb-head, .areas-head, .hero-sub { grid-template-columns: 1fr; }
  .services-head { position: static; }
  .onb-head p, .areas-head p { text-align: left; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .who-visual { min-height: 260px; }
}
@media (max-width: 860px) {
  nav.menu {
    position: fixed;
    top: 70px; right: 0; left: 0;
    flex-direction: column;
    align-items: stretch;
    background: #111016;
    border: 1px solid #25222e;
    border-radius: 14px;
    margin: 0 16px;
    padding: 16px;
    display: none;
  }
  nav.menu.open { display: flex; }
  .nav-toggle { display: block; }
  .cards, .area-grid, .why-grid { grid-template-columns: 1fr; }
  .hero-head .pre { margin-left: 0; }
  .hero-head .post { margin-right: 0; }
  .step .num { width: 72px; height: 72px; font-size: 30px; }
  .stat .bubble { width: 92px; height: 92px; font-size: 19px; }
}
