/* =========================================================================
   Studio Hoook | Minimal Apple UI Re-imagined
   Typography: Inter
   Theme: Glassmorphism, Squircle Curvy Edges, Soft Gradients
   ========================================================================= */

:root {
  /* Apple UI Color Palette (Light Mode) */
  --color-bg-body: #FBFBFD;
  --color-bg-card: #FFFFFF;
  --color-bg-card-alt: #F5F5F7;
  --color-bg-dark: #1D1D1F;
  
  --color-text-main: #1D1D1F;
  --color-text-muted: #86868B;
  --color-text-light: #F5F5F7;
  
  --color-accent: #0071E3; /* Classic Apple Blue, can be tweaked to Hook's colors */
  --color-accent-hover: #0077ED;
  
  --color-glass-bg: rgba(255, 255, 255, 0.72);
  --color-glass-border: rgba(0, 0, 0, 0.04);
  
  /* Radii for "Curvy Edges" */
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 40px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-float: 0 20px 40px rgba(0,0,0,0.12);
  
  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --transition-spring: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-fast: 0.2s ease;
}

/* ================= Global Reset & Base ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.page-loaded {
  opacity: 1;
}

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

ul {
  list-style: none;
}

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

/* ================= Typography ================= */
h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.1;
}

.hero-title {
  margin-bottom: 1rem;
}
.title-line-1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.04em;
}
.title-line-2 {
  /* 20px less than title-line-1 approximately. We will use calc for clamp */
  font-size: calc(clamp(3rem, 6vw, 5.5rem) - 20px);
  letter-spacing: -0.04em;
  color: var(--color-text-muted);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-bg-card-alt);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-glass-border);
  position: relative;
  overflow: hidden;
}

.badge::after {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transform: skewX(-20deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -150%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

/* ================= Layout & Utilities ================= */
.section-padding {
  padding: 6rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header {
  margin-bottom: 3rem;
}

.align-center {
  text-align: center;
}

.bg-soft {
  background-color: #F2F2F7;
  border-radius: var(--radius-lg);
  margin: 2rem auto;
  padding: 6rem 3rem;
  width: calc(100% - 4rem);
}

.bento-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-glass-border);
  transition: transform var(--transition-spring), box-shadow var(--transition-spring);
  overflow: hidden;
  position: relative;
  will-change: transform, box-shadow;
}

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

.bg-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.bg-dark p {
  color: #A1A1A6;
}

.bg-gradient {
  background: linear-gradient(135deg, #FF6B6B, #512B81);
}

.glass-text {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bg-softblue {
  background: linear-gradient(135deg, #0071E3, #42A5F5);
  color: #FFF;
}
.bg-softblue h3, .bg-softblue p {
  color: rgba(255,255,255,0.9);
}

/* ================= Buttons ================= */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-text-main);
  color: var(--color-bg-body);
}

.btn-primary:hover {
  background-color: #000000;
  transform: scale(1.02);
}

.btn-secondary {
  background-color: var(--color-bg-card-alt);
  color: var(--color-text-main);
}

.btn-secondary:hover {
  background-color: #E8E8ED;
  transform: scale(1.02);
}

.sz-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.fluid {
  width: 100%;
  margin-top: 2rem;
}

.light-var {
  background-color: #FFF;
  color: #1D1D1F;
}

.light-var:hover {
  background-color: transparent;
  color: #FFF;
  box-shadow: inset 0 0 0 1px #FFF;
}

/* ================= Navigation ================= */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--color-glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--color-glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--transition-fast), box-shadow 0.3s ease;
}

.nav-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-circle {
  width: 16px;
  height: 16px;
  background-color: var(--color-text-main);
  border-radius: 50%;
  display: inline-block;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.desktop-nav a:hover {
  color: var(--color-text-main);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--color-text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), top var(--transition-fast);
}

.mobile-menu-toggle span:nth-child(1) { top: 0px; }
.mobile-menu-toggle span:nth-child(2) { top: 10px; }

/* ================= Hero Section ================= */
.hero {
  margin: calc(var(--nav-height) + 2rem) auto 4rem;
  max-width: calc(var(--max-width) - 3rem); /* Matching inner boundaries */
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 2rem;
}

.hero-content {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-subtitle-container {
  width: 100%;
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.text-pressure-tagline {
  font-family: inherit;
  font-size: clamp(0.81rem, 1.95vw, 1.3rem); /* Reduced by 35% from 1.25-2.0rem */
  text-align: center;
  text-transform: uppercase;
  color: var(--color-text-main);
  line-height: 1.4;
  white-space: normal; /* Forced to wrap properly */
}

/* ================= Ticker ================= */
.client-ticker {
  background-color: var(--color-bg-card-alt);
  padding: 1.5rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--color-glass-border);
  border-bottom: 1px solid var(--color-glass-border);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  white-space: nowrap;
  animation: scroll 20s linear infinite;
  font-weight: 500;
  color: var(--color-text-muted);
}

.dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-text-muted);
  border-radius: 50%;
  opacity: 0.5;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= Bento Grid (About) ================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  grid-auto-rows: 280px;
  width: 100%;
}

.bento-wide {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.bento-square {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.bento-square h3 {
  font-size: 3rem;
  margin-bottom: 0;
}

/* ================= Capabilities ================= */
.capabilities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  width: 100%;
}

.capability-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.cap-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cap-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-bg-card-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ================= Portfolio ================= */
.portfolio-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  padding: 1rem; /* tighter padding for img */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-image {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-card-alt);
}

.card-info {
  padding: 0 0.5rem;
}

.card-info span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.link-arrow {
  color: var(--color-accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.link-arrow:hover {
  gap: 0.75rem;
}

/* ================= Pricing ================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid var(--color-text-main);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.04);
}

.tier {
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

.price span {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.features {
  margin-bottom: 2rem;
  flex: 1;
}

.features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-glass-border);
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.features li::before {
  content: '✓';
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.features li:last-child {
  border-bottom: none;
}

/* ================= CTA & Footer ================= */
.cta-section {
  padding: 4rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta-box {
  text-align: center;
  padding: 6rem 2rem;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #FFF;
  margin-bottom: 1rem;
}

.cta-box p {
  margin-bottom: 2.5rem;
}

.glass-footer {
  background-color: var(--color-bg-card);
  border-top: 1px solid var(--color-glass-border);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--color-text-main);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--color-glass-border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ================= Transitions & Scroll Reveal ================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

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

/* Stagger animation for grid children */
.reveal.active:nth-child(2) { transition-delay: 0.08s; }
.reveal.active:nth-child(3) { transition-delay: 0.16s; }
.reveal.active:nth-child(4) { transition-delay: 0.24s; }

/* ================= Media Queries (Mobile & Tablet) ================= */
@media (max-width: 900px) {
  .hero {
    padding: 3rem 2rem;
    gap: 3rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-wide {
    grid-column: span 1;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .bg-soft {
    margin: 1rem auto;
    padding: 4rem 1.5rem;
    width: calc(100% - 2rem);
  }
}

@media (max-width: 768px) {
  .desktop-nav, .desktop-only {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .capabilities-list {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions a {
    width: 100%;
  }
}
