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

/* ========================================================================
   DESIGN SYSTEM — CSS Custom Properties
   ======================================================================== */

:root {
  /* Colors — locked, sampled from live site */
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --blue: #005472;
  --blue-dark: #003d55;
  --blue-light: rgba(0,84,114,0.1);
  --olive: #678051;
  --olive-dark: #536843;
  --olive-light: #eef0ec;
  --red: #E54B4B;
  --red-light: rgba(229,75,75,0.1);
  --orange: #F7A072;
  --orange-light: rgba(247,160,114,0.15);
  --text-primary: #191928;
  --text-secondary: #41415e;
  --text-light: #8a8aa0;
  --border: #e8e8ef;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);

  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================================
   1. CSS RESET & BASE
   ======================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text-primary);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* ========================================================================
   2. UTILITY CLASSES
   ======================================================================== */

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--blue);
  margin-bottom: 16px;
  display: block;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 1.0625rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ========================================================================
   3. HEADER (Sticky Glassmorphism)
   ======================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232,232,239,0.5);
  height: 72px;
  transition: var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo svg {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: var(--transition-fast);
  border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
  position: absolute;
  left: 8px;
}

.menu-toggle span:nth-child(1) {
  top: 12px;
}

.menu-toggle span:nth-child(2) {
  top: 19px;
}

.menu-toggle span:nth-child(3) {
  top: 26px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 19px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 19px;
}

/* ========================================================================
   4. HERO SECTION
   ======================================================================== */

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 96px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
  position: relative;
  overflow: hidden;
}

.hero > .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--text-primary);
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--olive-light);
  color: var(--olive);
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--olive);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-primary);
  padding: 14px 38px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.hero-decoration {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,84,114,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ========================================================================
   4b. HERO CAROUSEL — Browser Mockup Showcase
   ======================================================================== */

.hero-showcase {
  position: relative;
  z-index: 1;
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.mockup-frame {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f4f4f6;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot--red    { background: #ff5f57; }
.mockup-dot--yellow { background: #ffbd2e; }
.mockup-dot--green  { background: #28ca41; }

.mockup-url {
  flex: 1;
  margin-left: 8px;
  height: 24px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.6875rem;
  color: var(--text-light);
  font-family: 'Inter', monospace;
  overflow: hidden;
  white-space: nowrap;
}

.mockup-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--off-white);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background: var(--blue);
  transform: scale(1.25);
}

/* ========================================================================
   5. PORTFOLIO SECTION
   ======================================================================== */

.portfolio {
  background: var(--off-white);
  padding: 96px 0;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.tab-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.tab-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.tab-btn[data-tab='health'].active,
.tab-btn[data-tab='fitness'].active {
  background: var(--olive);
  border-color: var(--olive);
}

.tab-btn[data-tab='spa'].active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--text-primary);
}

.tab-btn[data-tab='ecommerce'].active {
  background: var(--red);
  border-color: var(--red);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-card:hover img {
  transform: scale(1.03);
}

.portfolio-card-body {
  padding: 24px;
}

.portfolio-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.portfolio-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.portfolio-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.portfolio-tag--olive {
  background: var(--olive-light);
  color: var(--olive);
}

.portfolio-tag--blue {
  background: var(--blue-light);
  color: var(--blue);
}

.portfolio-tag--orange {
  background: var(--orange-light);
  color: #d4845a;
}

.portfolio-tag--red {
  background: var(--red-light);
  color: var(--red);
}

/* ========================================================================
   6. SERVICES SECTION
   ======================================================================== */

.services {
  padding: 96px 0;
  background: var(--white);
}

.services-subsection {
  margin-bottom: 64px;
}

.services-subsection:last-child {
  margin-bottom: 0;
}

.services-subsection-header {
  margin-bottom: 32px;
}

.services-subsection-header h3 {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card--ai::before {
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.service-card--marketing::before {
  background: linear-gradient(90deg, var(--blue), var(--olive));
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.service-icon--ai {
  background: var(--orange-light);
}

.service-icon--marketing {
  background: var(--blue-light);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.service-tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.service-tag--ai {
  background: var(--orange-light);
  color: #d4845a;
}

.service-tag--marketing {
  background: var(--blue-light);
  color: var(--blue);
}

/* ========================================================================
   7. FOUNDERS SECTION
   ======================================================================== */

.founders {
  background: var(--off-white);
  padding: 96px 0;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.founder-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
}

.founder-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.founder-img {
  position: relative;
  overflow: hidden;
  height: 380px;
}

.founder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition-slow);
}

.founder-card:hover .founder-img img {
  transform: scale(1.05);
}

.founder-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: var(--transition);
}

.founder-card:hover .founder-accent {
  opacity: 1;
}

.founder-info {
  padding: 32px;
}

.founder-role-tag {
  display: block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 8px;
}

.founder-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.founder-title {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 16px;
}

.founder-bio {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ========================================================================
   8. FOOTER
   ======================================================================== */

.site-footer {
  background: #0f0f1a;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo svg {
  height: 32px;
  margin-bottom: 24px;
}

.footer-brand .logo svg text {
  fill: white !important;
}

.footer-slogan {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  max-width: 400px;
  line-height: 1.5;
}

.footer-address {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

.footer-address svg {
  width: 14px;
  height: 14px;
  display: inline;
  vertical-align: middle;
  margin-right: 6px;
  fill: rgba(255,255,255,0.5);
}

.footer-links h4 {
  color: rgba(255,255,255,0.95);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links ul li {
  margin-bottom: 0;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9375rem;
  display: block;
  padding: 6px 0;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: var(--blue);
  font-weight: 500;
}

.footer-bottom a:hover {
  color: #5db8d9;
}

/* ========================================================================
   9. SCROLL REVEAL
   ======================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: var(--transition-slow);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ========================================================================
   10. KEYFRAMES
   ======================================================================== */

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================================
   11. ACCESSIBILITY
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========================================================================
   12. RESPONSIVE — 1024px
   ======================================================================== */

@media (max-width: 1024px) {
  .founders-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================================================
   12. RESPONSIVE — 768px
   ======================================================================== */

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    display: none;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    text-align: center;
    min-height: auto;
    padding: 64px 0;
  }

  .hero > .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-group {
    justify-content: center;
  }

  .trust-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-showcase {
    max-width: 480px;
    margin: 0 auto;
    animation: none;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .founders-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .portfolio,
  .services,
  .founders {
    padding: 64px 0;
  }

  .tab-nav {
    gap: 6px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }
}

/* ========================================================================
   12. RESPONSIVE — 480px
   ======================================================================== */

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

  .btn-primary,
  .btn-secondary {
    padding: 14px 28px;
    font-size: 0.9375rem;
    width: 100%;
    justify-content: center;
  }

  .cta-group {
    flex-direction: column;
  }

  .service-card {
    padding: 28px;
  }

  .founder-img {
    height: 300px;
  }
}
