@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Syne:wght@500;600;700;800&display=swap');
@import url('./accordion.css');

:root {
  --bg-dark: #050505;
  --bg-darker: #020202;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(255, 255, 255, 0.02);
  --text-main: #fcfcfc;
  --text-muted: #999999;
  --accent: #E5C07B; /* High-end subtle gold/champagne, very founder-led */
  --accent-glow: rgba(229, 192, 123, 0.15);
  
  --font-body: 'Outfit', sans-serif;
  --font-display: 'Syne', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated moving blobs */
.blob-container {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(circle at 15% 50%, rgba(20,20,20, 0.4), var(--bg-darker) 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: floatBlobs 20s infinite ease-in-out alternate;
}

.blob-1 {
  width: 600px; height: 600px;
  background: var(--accent-glow);
  top: -10%; left: -10%;
  animation-duration: 25s;
}

.blob-2 {
  width: 800px; height: 800px;
  background: rgba(30,30,40,0.6);
  bottom: -20%; right: -10%;
  animation-duration: 28s;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px; height: 400px;
  background: rgba(229, 192, 123, 0.08);
  top: 40%; left: 60%;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, -50px) scale(1.1); }
  100% { transform: translate(-50px, 100px) scale(0.9); }
}

/* Grid layout wrapper */
.page-container {
  max-width: 1120px; margin: 0 auto; padding: 0 40px;
}

/* Navigation */
.nav-header {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  width: calc(100% - 80px); max-width: 1120px;
  padding: 16px 24px;
  background: rgba(5,5,5,0.7);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  transition: all 0.4s var(--ease-smooth);
}

.nav-header.scrolled {
  top: 16px; padding: 12px 24px;
  background: rgba(5,5,5,0.85);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--text-main); text-decoration: none;
  display: flex; align-items: center; gap: 12px;
}
.brand span { color: var(--accent); }

.nav-links {
  display: flex; gap: 32px;
}
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0%; height: 2px; background: var(--accent);
  transition: width 0.3s var(--ease-smooth);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 28px; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
}
.btn-primary {
  background: var(--text-main); color: var(--bg-dark);
}
.btn-primary:hover {
  background: var(--accent); transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--accent-glow);
}
.btn-secondary {
  background: var(--glass-bg); color: var(--text-main);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08); transform: translateY(-2px);
}
.btn i, .btn svg { width: 18px; height: 18px; }

/* Heroes */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding-top: 120px;
}
.hero-content {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 100px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
}
.pill i, .pill svg { width: 14px; height: 14px; }

h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.15; font-weight: 700; margin-bottom: 32px;
  letter-spacing: -0.01em;
}
h1 span.italic {
  font-style: italic; font-weight: 500; color: var(--text-muted);
}
h1 span.highlight {
  position: relative; color: var(--accent);
}
.hero p.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--text-muted);
  line-height: 1.6; max-width: 640px; margin: 0 auto 40px;
}
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 60px; }

.hero-stats {
  display: flex; justify-content: center; gap: 60px;
  padding-top: 40px; border-top: 1px solid var(--glass-border);
}
.stat-item h4 { font-size: 2rem; color: var(--text-main); margin-bottom: 4px; }
.stat-item p { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin:0; }

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s;
  position: relative; overflow: hidden;
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.glass-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.glass-card:hover::before { opacity: 1; }

.section { padding: 120px 0; }
.section-header { margin-bottom: 60px; max-width: 700px; }
h2 { font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.1; margin-bottom: 20px; font-weight: 700;}
.section-header p { color: var(--text-muted); font-size: 1.15rem; line-height: 1.6; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Grid specific to components */
.bento-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
}
.bento-card {
  grid-column: span 12; display: flex; flex-direction: column;
}
@media (min-width: 768px) {
  .bento-card.wide { grid-column: span 8; }
  .bento-card.narrow { grid-column: span 4; }
  .bento-card.half { grid-column: span 6; }
  .bento-card.third { grid-column: span 4; }
}

/* Layout Utilities */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; } .gap-4 { gap: 32px; }

/* Typography */
h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin-bottom: 12px; }
h4 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
p { line-height: 1.6; color: var(--text-muted); margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

strong { color: var(--text-main); font-weight: 600; }

ul.feature-list { list-style: none; margin-top: 24px; }
ul.feature-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; color: var(--text-muted); }
ul.feature-list li svg { color: var(--accent); width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* Marquee / Auto scrolling */
.marquee-container {
  overflow: hidden; width: 100vw; margin-left: calc(-50vw + 50%); white-space: nowrap; position: relative; padding: 40px 0;
  border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.3);
}
.marquee {
  display: inline-block; animation: marquee 30s linear infinite;
}
.marquee span {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
  color: var(--glass-border); margin: 0 40px; text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(255,255,255,0.1); color: transparent;
  transition: color 0.3s; cursor: default;
}
.marquee span:hover { color: var(--text-main); -webkit-text-stroke: 0; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--ease-spring); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }

/* Image Wrappers */
.img-wrapper {
  overflow: hidden; border-radius: var(--radius-md); width: 100%; margin-top: 24px; flex-grow: 1;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.img-wrapper img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease-smooth); min-height: 200px;
}
.glass-card:hover .img-wrapper img { transform: scale(1.05); }

.tag { padding: 4px 12px; background: rgba(229, 192, 123, 0.1); color: var(--accent); border-radius: 100px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 16px; display: inline-block; }

/* Proof Grid specific */
.proof-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.proof-item {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
  border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 40px 24px;
  transition: transform 0.4s var(--ease-smooth);
}
.proof-item:hover { transform: translateY(-10px); background: rgba(255,255,255,0.05); border-color: var(--accent); }
.proof-item svg { width: 48px; height: 48px; color: var(--accent); margin-bottom: 24px; opacity: 0.8; }
.proof-item h4 { font-size: 1.25rem; margin-bottom: 8px; }

/* Portfolio / Case Study list */
.case-item {
  display: flex; gap: 40px; margin-bottom: 60px; align-items: center;
}
.case-item:nth-child(even) { flex-direction: row-reverse; }
.case-img { flex: 1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); position: relative; }
.case-img img { width: 100%; height: auto; display: block; filter: grayscale(20%); transition: 0.5s; }
.case-item:hover .case-img img { filter: grayscale(0%); transform: scale(1.02); }
.case-content { flex: 1; }
.case-content h3 { font-size: 2.5rem; margin-bottom: 16px; }

@media (max-width: 900px) {
  .case-item, .case-item:nth-child(even) { flex-direction: column; }
}

/* Footer */
.footer {
  padding: 80px 0 40px; border-top: 1px solid var(--glass-border); margin-top: 80px; width: 100%;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 60px;
  flex-wrap: wrap; gap: 40px;
}
.footer-brand { flex: 1; min-width: 300px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col strong { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--text-main); }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 40px; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.9rem;
}

@media (max-width: 900px) {
  .nav-header { width: calc(100% - 32px); padding: 12px 20px; }
  .nav-links { display: none; } 
  h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
  .section { padding: 80px 0; }
  .bento-card.wide, .bento-card.narrow, .bento-card.half, .bento-card.third { grid-column: span 12; }
  .hero-stats { flex-direction: column; gap: 32px; align-items: center; }
}

/* Service icon layout */
.service-icon {
  width: 64px; height: 64px; border-radius: 100px; background: rgba(229, 192, 123, 0.1); border: 1px solid rgba(229, 192, 123, 0.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.service-icon svg { color: var(--accent); }

/* Web Elements representation */
.ui-mockup {
  position: relative; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); background: #0A0A0A; padding-top: 32px; height: 100%; min-height: 250px;
}
.ui-mockup::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 32px; background: #151515; border-bottom: 1px solid var(--glass-border);
}
.ui-mockup::after {
  content: ''; position: absolute; top: 12px; left: 16px; width: 8px; height: 8px; border-radius: 50%;
  background: #ff5f56; box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #27c93f;
}
.ui-mockup-content { padding: 20px; }
.ui-mockup-line { height: 8px; border-radius: 4px; background: var(--glass-border); margin-bottom: 12px; width: 100%; }
.ui-mockup-line.short { width: 60%; }

/* Custom internal page hero */
.internal-hero { min-height: 40vh; display: flex; align-items: flex-end; padding-bottom: 60px; padding-top: 160px; border-bottom: 1px solid var(--glass-border); margin-bottom: 80px;}
.internal-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 16px; }
.internal-hero p { font-size: 1.25rem; max-width: 600px; }

/* Contact form */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; }
.form-control { width: 100%; padding: 16px 20px; border-radius: var(--radius-sm); background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: var(--text-main); font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s; }
.form-control:focus { outline: none; border-color: var(--accent); }
textarea.form-control { min-height: 150px; resize: vertical; }
