/* AmbraVision — prototyp strony (styl: ciemny, Oswald + Open Sans). */
:root {
  --bg: #000;
  --bg-alt: #0d0d0d;
  --bg-card: #121212;
  --line: #1c1c1c;
  --text: #fff;
  --muted: #989898;
  --accent: #e8a34a;          /* bursztyn — nawiązanie do „Ambra” */
  --accent-glow: rgba(232, 163, 74, .35);
  --container: 1448px;
  --gutter: 1.5rem;
  --font-body: "Open Sans", system-ui, sans-serif;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font-body);
  letter-spacing: .6px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}
h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
p { margin: 0 0 1em; color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font: 500 14px var(--font-head);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }

/* Przyciski */
.btn {
  display: inline-block;
  padding: 12px 54px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font: 500 15px/24px var(--font-head);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn-accent { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: transparent; color: var(--accent); }

/* Pasek górny */
.topbar { background: var(--text); color: var(--bg); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 45px; gap: 1rem; }
.topbar a:hover { color: #555; }

/* Nagłówek */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 100px; }
.logo { font: 600 26px var(--font-head); letter-spacing: 4px; text-transform: uppercase; }
.logo span { color: var(--accent); }
.nav ul { display: flex; gap: 2.8em; margin: 0; padding: 0; list-style: none; }
.nav a { font: 700 15px var(--font-head); letter-spacing: .5px; text-transform: uppercase; }
.nav-toggle { display: none; background: none; border: 1px solid var(--text); color: var(--text); padding: 6px 12px; font-size: 20px; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 100px;
  background: radial-gradient(ellipse at 70% 60%, rgba(232,163,74,.12), transparent 60%);
}
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero p { font-size: 17px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.bottles { display: flex; justify-content: center; align-items: flex-end; gap: 22px; height: 460px; }
.bottle {
  position: relative;
  width: 86px; height: 360px;
  border-radius: 30px 30px 14px 14px;
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
  border: 1px solid #2a2a2a;
  box-shadow: 0 30px 60px -20px var(--accent-glow);
}
.bottle::before {                 /* szyjka */
  content: ""; position: absolute; left: 50%; top: -70px; transform: translateX(-50%);
  width: 30px; height: 72px; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #222, #111); border: 1px solid #2a2a2a; border-bottom: 0;
}
.bottle .screen {
  position: absolute; inset: 70px 10px 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8a34a, #b4481f 45%, #3a1a6b);
  background-size: 400% 100%;
  animation: flow 6s linear infinite;
}
.bottle:nth-child(1) .screen { background-position: 0 0; }
.bottle:nth-child(2) { height: 400px; }
.bottle:nth-child(2) .screen { animation-delay: -1.5s; }
.bottle:nth-child(3) .screen { animation-delay: -3s; }
.bottle:nth-child(4) { height: 330px; }
.bottle:nth-child(4) .screen { animation-delay: -4.5s; }
@keyframes flow { to { background-position: 400% 0; } }
@media (prefers-reduced-motion: reduce) { .bottle .screen { animation: none; } }

/* Funkcje */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--bg); padding: 48px 36px; transition: background .25s; }
.feature:hover { background: var(--bg-card); }
.feature .icon { width: 48px; height: 48px; margin-bottom: 24px; color: var(--accent); }

/* Jak to działa */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: step; }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font: 500 56px/1 var(--font-head); color: transparent; -webkit-text-stroke: 1px var(--accent);
}

/* Premium / baner */
.banner {
  background: linear-gradient(90deg, rgba(0,0,0,.9) 35%, rgba(0,0,0,.2)), radial-gradient(circle at 80% 50%, #b4481f, #3a1a6b 60%, #000);
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.banner .container > div { max-width: 620px; }

/* Liczby */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 30px 10px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font: 500 52px/1 var(--font-head); color: var(--text); }
.stat span { font: 500 14px var(--font-head); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.form { display: grid; gap: 16px; }
.form input, .form textarea {
  width: 100%; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--line); color: var(--text);
  font: inherit; letter-spacing: normal;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 140px; resize: vertical; }

/* Stopka */
.footer { border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 80px; padding: 100px 0 80px; }
.footer h4 { font-size: 22px; margin-bottom: 1.2em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6em; }
.footer li, .footer p { color: var(--muted); }
.footer-bottom { border-top: 1px solid #262626; padding: 18px 0; font-size: 14px; color: var(--muted); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Responsywność */
@media (max-width: 1024px) {
  .hero .container, .contact { grid-template-columns: 1fr; }
  .grid-4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 50px; }
  .section { padding: 70px 0; }
}
@media (max-width: 767px) {
  .topbar .hide-sm { display: none; }
  .header .container { min-height: 80px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: block; padding: 1em var(--gutter); border-top: 1px solid rgba(255,255,255,.1); }
  .hero { padding: 60px 0; }
  .bottles { height: 340px; gap: 12px; transform: scale(.8); }
  .grid-4, .steps, .stats, .footer-main { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .btn { padding: 10px 28px; }
}
