/* ========================================
   WEBDEVYO — Design System
   Apple-style white/silver + electric blue
   ======================================== */

:root {
  /* Surfaces */
  --bg: #F4F6FB;
  --bg-elevated: #FFFFFF;
  --bg-tint: #EEF2F9;
  --surface-silver: linear-gradient(180deg, #FFFFFF 0%, #E8ECF4 100%);
  --surface-glass: rgba(255, 255, 255, 0.72);

  /* Ink */
  --ink-1: #050B1F;
  --ink-2: #1A2138;
  --ink-3: #4A5470;
  --ink-4: #8A93AB;
  --ink-5: #C5CCDA;

  /* Brand */
  --blue: #0A53FF;
  --blue-deep: #003BC9;
  --blue-soft: #4A82FF;
  --blue-glow: #7AA5FF;
  --blue-tint: #E6EEFF;

  /* Lines */
  --line: rgba(10, 18, 48, 0.08);
  --line-strong: rgba(10, 18, 48, 0.16);

  /* Shadows — soft, layered */
  --shadow-xs: 0 1px 2px rgba(10, 18, 48, 0.04);
  --shadow-sm: 0 4px 16px rgba(10, 18, 48, 0.06), 0 1px 3px rgba(10, 18, 48, 0.04);
  --shadow-md: 0 12px 40px rgba(10, 18, 48, 0.08), 0 2px 8px rgba(10, 18, 48, 0.04);
  --shadow-lg: 0 32px 80px rgba(10, 18, 48, 0.12), 0 8px 24px rgba(10, 18, 48, 0.06);
  --shadow-blue: 0 16px 48px rgba(10, 83, 255, 0.24);
  --shadow-blue-soft: 0 8px 32px rgba(10, 83, 255, 0.12);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-2xl: 48px;
  --r-full: 999px;

  /* Type */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --container: 1320px;
  --gutter: 32px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-1);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  /* Subtle dot grid backdrop, very faint */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10, 18, 48, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-4);
}

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 112px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink-1);
  word-break: normal;
  overflow-wrap: normal;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink-1);
  word-break: normal;
  overflow-wrap: normal;
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  word-break: normal;
  overflow-wrap: normal;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-3);
  font-weight: 400;
}

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

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink-1);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
.btn-primary .arrow {
  display: inline-flex;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-1);
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: transform 0.4s var(--ease-out);
}
.btn-primary:hover .arrow { transform: translateX(3px) rotate(-45deg); }

.btn-ghost {
  background: transparent;
  color: var(--ink-1);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink-1);
  color: #fff;
  border-color: var(--ink-1);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue-soft);
}
.btn-blue:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* ========================================
   CARDS / GLASS
   ======================================== */
.card {
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.5s var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ========================================
   PILLS / BADGES
   ======================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 83, 255, 0.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(10, 83, 255, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(10, 83, 255, 0.05); }
}

/* ========================================
   SECTION SCAFFOLD
   ======================================== */
section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 64px;
  max-width: 720px;
}

/* Divider with mono number */
.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   UTILITY
   ======================================== */
.text-blue { color: var(--blue); }
.text-muted { color: var(--ink-3); }
.text-faint { color: var(--ink-4); }
.bg-elevated { background: var(--bg-elevated); }

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* ========================================
   FLOATING ELEMENTS
   ======================================== */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366; /* WhatsApp green */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring);
  animation: float-bob 3s ease-in-out infinite;
}
.floating-cta:hover { transform: scale(1.1); }
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .display-1 { font-size: clamp(40px, 6vw, 90px); }
  .display-2 { font-size: clamp(36px, 5vw, 64px); }
  .h1 { font-size: clamp(28px, 4vw, 48px); }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .display-1 { font-size: clamp(32px, 5vw, 64px); }
  .display-2 { font-size: clamp(28px, 4.5vw, 48px); }
  .h1 { font-size: clamp(24px, 3.5vw, 36px); }
}

@media (max-width: 480px) {
  .display-1 { font-size: clamp(28px, 8vw, 48px); }
  .display-2 { font-size: clamp(24px, 7vw, 40px); }
  .h1 { font-size: clamp(22px, 6vw, 32px); }
}

@media (max-width: 360px) {
  .display-1 { font-size: clamp(24px, 8vw, 36px); }
  .display-2 { font-size: clamp(22px, 7vw, 32px); }
  .h1 { font-size: clamp(20px, 6vw, 28px); }
}
