/* ============================================
   HAVNFEEL — Bright theme
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #fafafe;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5fb;
  --border: rgba(15, 23, 42, 0.08);
  --border-2: rgba(15, 23, 42, 0.16);
  --text: #0b0f1a;
  --text-2: #525a6b;
  --text-3: #8992a4;
  --accent-1: #6d5efc;
  --accent-2: #0ea5b7;
  --grad: linear-gradient(135deg, #6d5efc 0%, #0ea5b7 100%);
  --grad-soft: linear-gradient(135deg, rgba(109, 94, 252, 0.12) 0%, rgba(14, 165, 183, 0.12) 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08), 0 8px 16px rgba(15, 23, 42, 0.04);
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background decoration */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 520px; height: 520px;
  background: #6d5efc;
  top: -180px; left: -160px;
}
.orb-2 {
  width: 600px; height: 600px;
  background: #0ea5b7;
  bottom: -220px; right: -200px;
  opacity: 0.18;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ========== NAV ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.brand-mark { width: 28px; height: 28px; display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-size: 18px; letter-spacing: -0.02em; }
.brand-dot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  gap: 32px;
}
.nav-menu a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.15s, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--grad);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(109, 94, 252, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(109, 94, 252, 0.38); }

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--text); background: var(--surface-2); }

/* ========== HERO ========== */
.hero {
  padding: 100px 0 120px;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 auto 28px;
  max-width: 1000px;
}
.hero-title .serif {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero-tags {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.hero-tags span {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.hero-tags span:hover {
  color: var(--text);
  border-color: var(--border-2);
  transform: translateY(-1px);
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.section-title .serif {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lede {
  font-size: 17px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }

.sc-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 28px;
  box-shadow: 0 8px 20px rgba(109, 94, 252, 0.25);
}
.sc-icon svg { width: 28px; height: 28px; }

.sc-num {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.service-card > p {
  color: var(--text-2);
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
  font-size: 14px;
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

/* ========== DELIVER ========== */
.deliver-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.deliver-item {
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.deliver-item:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.di-dot {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad);
  margin-bottom: 20px;
  box-shadow: 0 0 0 4px rgba(109, 94, 252, 0.12);
}

.deliver-item h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.deliver-item p {
  color: var(--text-2);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* ========== PROCESS ========== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.process-step {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.process-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.ps-num {
  font-family: 'Instrument Serif', serif;
  font-size: 46px;
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  line-height: 1;
}

.process-step h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.process-step p {
  color: var(--text-2);
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ========== CONTACT ========== */
.contact { padding-bottom: 140px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left .section-title { text-align: left; font-size: clamp(36px, 4vw, 48px); }

.contact-lede {
  color: var(--text-2);
  font-size: 17px;
  margin: 0 0 40px;
  line-height: 1.6;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cl-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-list a:hover {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-list li > span:not(.cl-label) {
  font-size: 17px;
  color: var(--text);
}

.contact-form {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(109, 94, 252, 0.12);
}
.field textarea { resize: vertical; min-height: 100px; }
.field select { cursor: pointer; }
.field select option { background: #ffffff; color: var(--text); }

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--surface-2);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-meta {
  font-size: 13px;
  color: var(--text-3);
}

/* ========== FADE-IN ANIM ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .deliver-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-burger { display: inline-flex; }
}

@media (max-width: 600px) {
  .deliver-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 80px; }
  .section { padding: 72px 0; }
  .service-card { padding: 28px; }
  .sc-num { top: 24px; right: 24px; }
  .contact-form { padding: 24px; }
  .footer-inner { justify-content: flex-start; }
}
