/* ============================================================
   atab — Agência Tecnoartística Brasileira
   Landing Page Premium · Skeuomorphism Refined 2026
   ============================================================ */

:root {
  /* Palette — Light/Default (warm sand + carbon) */
  --bg-base: #F2EDE2;          /* bege areia */
  --bg-paper: #EBE5D5;
  --bg-deep: #0A0A0A;          /* carvão */
  --bg-ink: #141414;
  --bg-elev: #1B1B1B;

  --fg-primary: #0A0A0A;
  --fg-secondary: #4A4944;
  --fg-tertiary: #8A8780;
  --fg-on-dark: #F2EDE2;
  --fg-on-dark-2: #B8B5AD;
  --fg-on-dark-3: #6E6B64;

  --accent: #D60019;           /* vermelho vibrante */
  --accent-deep: #9A0014;
  --accent-glow: #FF2A3A;

  --silver: #C8C5BD;
  --silver-2: #9C9990;
  --silver-edge: #5A5853;

  --rule: rgba(10, 10, 10, 0.12);
  --rule-strong: rgba(10, 10, 10, 0.28);
  --rule-on-dark: rgba(242, 237, 226, 0.10);
  --rule-on-dark-strong: rgba(242, 237, 226, 0.22);

  /* Typography */
  --font-serif: "Newsreader", "Source Serif Pro", Georgia, serif;
  --font-sans: "Geist", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Materials & Skeumorphism */
  --material-paper:
    radial-gradient(120% 120% at 0% 0%, #FAF6EC 0%, #EBE5D5 60%, #DDD6C2 100%);
  --material-carbon:
    radial-gradient(120% 120% at 30% 0%, #1F1F1F 0%, #0E0E0E 60%, #050505 100%);
  --material-metal:
    linear-gradient(180deg,
      #E8E5DC 0%,
      #C8C5BD 25%,
      #9C9990 50%,
      #C8C5BD 75%,
      #E8E5DC 100%);
  --material-metal-dark:
    linear-gradient(180deg,
      #2A2A2A 0%,
      #1A1A1A 25%,
      #0E0E0E 50%,
      #1A1A1A 75%,
      #2A2A2A 100%);
  --material-rubber:
    radial-gradient(120% 120% at 30% 20%, #1C1C1C 0%, #0A0A0A 100%);

  /* Shadows — physical, layered */
  --shadow-soft:
    0 1px 2px rgba(10,10,10,0.06),
    0 4px 12px rgba(10,10,10,0.08);
  --shadow-press:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(10,10,10,0.18),
    0 1px 2px rgba(10,10,10,0.18),
    0 6px 14px rgba(10,10,10,0.20),
    0 20px 40px -10px rgba(10,10,10,0.30);
  --shadow-deep:
    0 2px 4px rgba(0,0,0,0.4),
    0 12px 32px rgba(0,0,0,0.55),
    0 40px 80px -20px rgba(0,0,0,0.6);
  --shadow-inset-dark:
    inset 0 2px 4px rgba(0,0,0,0.6),
    inset 0 -1px 0 rgba(255,255,255,0.04);
  --shadow-inset-light:
    inset 0 2px 4px rgba(10,10,10,0.10),
    inset 0 -1px 0 rgba(255,255,255,0.6);

  /* Geometry */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Grid */
  --col: minmax(0, 1fr);
  --gutter: 24px;
  --container: 1320px;
  --section-pad: 120px;
}

@media (max-width: 900px) {
  :root {
    --section-pad: 80px;
    --gutter: 16px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-pad: 64px;
  }
}

/* Dark mode */
[data-theme="dark"] {
  --bg-base: #0A0A0A;
  --bg-paper: #141414;
  --fg-primary: #F2EDE2;
  --fg-secondary: #B8B5AD;
  --fg-tertiary: #6E6B64;
  --rule: rgba(242, 237, 226, 0.10);
  --rule-strong: rgba(242, 237, 226, 0.22);
  --material-paper: var(--material-carbon);
  --shadow-press:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    0 1px 2px rgba(0,0,0,0.4),
    0 6px 14px rgba(0,0,0,0.55),
    0 20px 40px -10px rgba(0,0,0,0.7);
  --shadow-soft:
    0 1px 2px rgba(0,0,0,0.4),
    0 4px 12px rgba(0,0,0,0.5);
}

/* ============================================================
   Base
   ============================================================ */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg-base);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
}

@media (max-width: 900px) {
  html { cursor: auto; }
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(214, 0, 25, 0.06), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(214, 0, 25, 0.04), transparent 60%),
    var(--bg-base);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(214, 0, 25, 0.10), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(214, 0, 25, 0.06), transparent 60%),
    var(--bg-base);
  background-attachment: fixed;
}

/* Grain overlay (sutil, em todo o body) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Type */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.18) inset,
    0 0 8px rgba(214,0,25,0.5),
    0 1px 0 rgba(255,255,255,0.5) inset;
}

.mono {
  font-family: var(--font-mono);
}

.serif {
  font-family: var(--font-serif);
}

/* ============================================================
   Layout helpers
   ============================================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 700px) {
  .container {
    padding: 0 20px;
  }
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
}

.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-strong) 20%, var(--rule-strong) 80%, transparent);
  margin: 0;
}

/* Section header */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.025em;
}

.section-head .lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-secondary);
  max-width: 60ch;
  margin-top: 24px;
}

/* ============================================================
   Buttons — Skeumorphic
   ============================================================ */

.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 0;
  cursor: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  text-decoration: none;
  position: relative;
  transition: transform 120ms cubic-bezier(.2,.6,.3,1), box-shadow 200ms ease;
  user-select: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 900px) {
  .btn { cursor: pointer; }
}

.btn-primary {
  background:
    radial-gradient(120% 120% at 30% 0%, #FF2A3A 0%, #D60019 50%, #9A0014 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 80, 80, 0.25),
    0 1px 2px rgba(154, 0, 20, 0.4),
    0 6px 14px rgba(154, 0, 20, 0.35),
    0 18px 40px -8px rgba(154, 0, 20, 0.45);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 40%);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 80, 80, 0.3),
    0 2px 4px rgba(154, 0, 20, 0.45),
    0 10px 22px rgba(154, 0, 20, 0.45),
    0 24px 50px -8px rgba(154, 0, 20, 0.55),
    0 0 30px -4px rgba(255, 42, 58, 0.35);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 80, 80, 0.18),
    0 1px 1px rgba(154, 0, 20, 0.35),
    0 2px 4px rgba(154, 0, 20, 0.25);
}

.btn-ghost {
  background: var(--material-paper);
  color: var(--fg-primary);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(10,10,10,0.10),
    inset 0 0 0 1px rgba(10,10,10,0.06),
    0 1px 2px rgba(10,10,10,0.06),
    0 4px 10px rgba(10,10,10,0.08);
}

[data-theme="dark"] .btn-ghost {
  background: linear-gradient(180deg, #222 0%, #161616 100%);
  color: var(--fg-on-dark);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 1px 2px rgba(0,0,0,0.4),
    0 6px 12px rgba(0,0,0,0.4);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(10,10,10,0.10),
    inset 0 0 0 1px rgba(10,10,10,0.08),
    0 2px 4px rgba(10,10,10,0.08),
    0 8px 18px rgba(10,10,10,0.12);
}

.btn-ghost:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(10,10,10,0.10),
    inset 0 0 0 1px rgba(10,10,10,0.06);
}

.btn .arrow {
  width: 18px;
  height: 18px;
  display: inline-block;
  position: relative;
  transition: transform 200ms cubic-bezier(.2,.6,.3,1);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ============================================================
   Cards — Tactile surfaces
   ============================================================ */

.card-paper {
  background: var(--material-paper);
  border-radius: var(--r-md);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(10,10,10,0.06),
    inset 0 0 0 1px rgba(10,10,10,0.05),
    0 1px 2px rgba(10,10,10,0.05),
    0 8px 24px -4px rgba(10,10,10,0.10),
    0 28px 56px -16px rgba(10,10,10,0.15);
  position: relative;
  overflow: hidden;
}

.card-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.card-carbon {
  background: var(--material-carbon);
  color: var(--fg-on-dark);
  border-radius: var(--r-md);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 2px 4px rgba(0,0,0,0.4),
    0 16px 40px -8px rgba(0,0,0,0.55);
  position: relative;
  overflow: hidden;
}

.card-carbon::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.25;
  mix-blend-mode: overlay;
}

/* Dynamic specular highlight that follows mouse */
.specular {
  position: relative;
}
.specular::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    300px 300px at var(--mx, -50%) var(--my, -50%),
    rgba(255,255,255,0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 1;
  mix-blend-mode: soft-light;
}
.specular:hover::before {
  opacity: 1;
}
[data-theme="dark"] .specular::before {
  background: radial-gradient(
    300px 300px at var(--mx, -50%) var(--my, -50%),
    rgba(255,255,255,0.10),
    transparent 60%
  );
}

/* ============================================================
   Custom Cursor
   ============================================================ */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.3),
    0 0 12px rgba(214, 0, 25, 0.7);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 180ms ease, height 180ms ease, background 180ms ease;
  mix-blend-mode: normal;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 220ms cubic-bezier(.2,.6,.3,1),
              height 220ms cubic-bezier(.2,.6,.3,1),
              border-color 200ms ease,
              background 200ms ease;
}

[data-theme="dark"] .cursor-ring {
  border-color: var(--rule-on-dark-strong);
}

.cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  border-color: var(--accent);
  background: rgba(214, 0, 25, 0.04);
}

@media (max-width: 900px) {
  .cursor, .cursor-ring { display: none; }
}

/* ============================================================
   Reveal animation
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(.2,.6,.3,1),
              transform 900ms cubic-bezier(.2,.6,.3,1);
  transition-delay: var(--delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 24px;
  border-radius: var(--r-pill);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.35));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(10,10,10,0.06),
    inset 0 0 0 1px rgba(10,10,10,0.06),
    0 1px 2px rgba(10,10,10,0.06),
    0 12px 32px -8px rgba(10,10,10,0.18);
}

[data-theme="dark"] .nav {
  background:
    linear-gradient(180deg, rgba(30,30,30,0.7), rgba(20,20,20,0.55));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 1px 2px rgba(0,0,0,0.4),
    0 12px 32px -8px rgba(0,0,0,0.5);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand .bracket { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--rule);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: color 180ms ease, background 180ms ease;
}
.nav-link:hover {
  color: var(--fg-primary);
  background: rgba(10,10,10,0.04);
}
[data-theme="dark"] .nav-link:hover {
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background:
    radial-gradient(120% 120% at 30% 0%, #FF2A3A 0%, #D60019 50%, #9A0014 100%);
  color: #fff;
  border: 0;
  cursor: none;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.35),
    0 1px 2px rgba(154,0,20,0.4),
    0 4px 10px rgba(154,0,20,0.35);
  transition: transform 120ms ease;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta:active { transform: translateY(1px); }
@media (max-width: 900px) {
  .nav {
    top: 12px;
    padding: 6px 6px 6px 16px;
    gap: 4px;
  }
  .nav-brand {
    font-size: 12px;
  }
  .nav-cta {
    font-size: 11px;
    padding: 8px 14px;
    cursor: pointer;
  }
  .nav-links { display: none; }
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--material-carbon);
  color: var(--fg-on-dark);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
  margin-bottom: 80px;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-on-dark-3);
  margin-bottom: 20px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer a {
  color: var(--fg-on-dark-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 180ms ease;
}
.footer a:hover { color: var(--accent-glow); }

.footer-mark {
  font-family: var(--font-mono);
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--fg-on-dark);
  margin-bottom: 16px;
}
.footer-mark .bracket { color: var(--accent); }

.footer-tagline {
  color: var(--fg-on-dark-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 36ch;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--rule-on-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-on-dark-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .container { padding: 0 20px; }
}
