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

:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f6f8;
  --bg-dark: #0a2e40;
  --accent-primary: #8ABEB7; /* Pale teal accent */
  --accent-hover: #76A9A2;
  --text-main: #374151;
  --text-heading: #111827;
  --text-muted: #6b7280;
  
  /* Typography */
  --font-body: 'Montserrat', sans-serif;

  /* Shadows & Borders */
  --card-border: 1px solid #e5e7eb;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --header-shadow: 0 2px 4px rgba(0,0,0,0.05);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* =========================================================================
   Typography & Utilities
   ========================================================================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.text-muted { color: var(--text-muted); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =========================================================================
   Components
   ========================================================================= */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-outline:hover {
  background-color: var(--accent-primary);
  color: #ffffff;
}

.btn-white {
  background-color: #ffffff;
  color: var(--text-heading);
}

.btn-white:hover {
  background-color: #f3f4f6;
}

/* Cards (Standard Theme) */
.card {
  background: #ffffff;
  border: var(--card-border);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.dark-card {
  background-color: #0b2536; /* Exact slate color used in header */
  color: #ffffff;
  border: none;
  text-align: center;
  border-radius: 8px; /* Tighter radius to match screenshot */
  padding: 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* Stronger depth */
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.dark-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.dark-card h3 {
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 800;
  margin-top: 1.5rem;
  font-size: 1.35rem; /* Larger */
  margin-bottom: 0.5rem;
}

.dark-card p {
  color: #f3f4f6;
  margin: 0;
  font-size: 1.05rem; /* Larger */
  font-weight: 500;
}

.feature-icon-wrapper {
  margin-bottom: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* =========================================================================
   Layout: Header & Nav
   ========================================================================= */
header {
  width: 100%;
  background: #0B2536; /* Dark slate header */
  padding: 1.25rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 45px; /* Slightly larger to match reference */
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: #ffffff; /* White links on dark background */
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

.header-cta {
  display: flex;
  align-items: center;
}

/* =========================================================================
   Layout: Opt-in Bar
   ========================================================================= */
.optin-bar {
  background-color: var(--accent-primary);
  padding: 0.75rem 0;
  color: #0B2536;
  font-weight: 700;
  font-size: 0.9rem;
}

.optin-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.optin-container form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.optin-input {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
}

.btn-dark {
  background-color: #0B2536;
  color: #ffffff;
  border-radius: 4px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-dark:hover {
  background-color: #000000;
}

/* =========================================================================
   Layout: Hero Section
   ========================================================================= */
.hero {
  position: relative;
  min-height: 90vh; /* Extended height to create more sky space for CTAs */
  display: flex;
  align-items: flex-start;
  padding-top: 3rem; /* Tighter padding to pull text upwards away from the Orca */
  background-image: url('../images/hero_bg.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.hero::before {
  /* Removed dark overlay so original sky color pops perfectly */
  content: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h2 {
  font-size: 1.5rem;
  color: var(--text-main);
  font-weight: 400;
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* =========================================================================
   Sections: Features / How it works
   ========================================================================= */
section {
  padding: 5rem 0;
}

section.bg-light {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

/* =========================================================================
   Sections: Portfolio
   ========================================================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Force 4-across horizontal row */
  gap: 1.5rem;
}

.portfolio-item {
  display: block;
}

.portfolio-item img {
  width: 100%;
  transition: transform var(--transition-fast);
  /* Stripped borders/shadows to let natural PNG transparency render cleanly */
}

.portfolio-item:hover img {
  transform: translateY(-5px);
}

/* =========================================================================
   Sections: Pricing
   ========================================================================= */
.bg-blue {
  background-color: #51A4EB; /* Bright blue background */
  color: #ffffff;
}

.bg-blue .section-header h2,
.bg-blue .section-header p {
  color: #ffffff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card-refined {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.pricing-header {
  padding: 2rem 1.5rem;
  text-align: center;
  color: #ffffff;
}

.pricing-header.starter { background: #000000; }
.pricing-header.pro { background: #0b2536; }
.pricing-header.premium { background: var(--accent-primary); }

.pricing-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 800;
}

.pricing-header p {
  margin: 0.25rem 0 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.ribbon {
  position: absolute;
  top: 20px;
  right: -30px;
  background: #3ac0ff;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 30px;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  letter-spacing: 1px;
}

.pricing-body {
  padding: 2.5rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.price-block {
  text-align: center;
  color: #0b2536; /* Navy blue */
  margin-bottom: 2rem;
}

.price-block .currency {
  font-size: 1.5rem;
  font-weight: 700;
  vertical-align: top;
  line-height: 1;
}

.price-block .amount {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}

.price-block .period {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.pricing-features-list li {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.75rem;
}

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

.pricing-features-list .check {
  color: var(--accent-primary);
}

.pricing-features-list .unavailable {
  color: #6b7280;
}

.pricing-features-list .minus {
  color: #ef4444; /* red */
}

.pricing-body .btn {
  width: 100%;
  border-radius: 4px;
  padding: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.pricing-terms {
  margin-top: 1.5rem;
  font-size: 0.65rem;
  color: #6b7280;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.pricing-terms svg {
  color: #fbbf24; /* yellow padlock */
}

/* =========================================================================
   Footer
   ========================================================================= */
footer {
  background: var(--bg-dark);
  color: #d1d5db;
  padding: 4rem 0 2rem;
}

footer h4 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  font-size: 0.875rem;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 768px) {
  .optin-container {
    flex-direction: column;
    text-align: center;
  }
  .optin-container form {
    flex-wrap: wrap;
    justify-content: center;
  }
  .header-cta {
    display: none; /* Hide header btn on small screens if too cramped */
  }
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    transition: right var(--transition-fast);
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    color: var(--text-heading);
  }

  /* When menu is active, ensure the button is dark so it's visible on white bkg */
  .mobile-menu-btn.active {
    color: var(--text-heading);
  }
}

@media (max-width: 950px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr); /* Fall back to 2 columns on tablets */
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr; /* Stack vertically on small phones */
  }
}
