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

/* Design Tokens */
:root {
  --navy: #0c224b;
  --cerulean: #2e5eaa;
  --sky: #5d86ca;
  --soft: #ffffff;
  --card: #ffffff;
  --text-dark: #0d1a36;
  --muted: #5c687d;
  --accent: #ff9d1c;
}

* {
  box-sizing: border-box;
}

/* Base */
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--soft);
  color: var(--text-dark);
}

/* Header And Navigation */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4vw;
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(46, 94, 170, 0.32);
}

.logo {
  font-size: 2.2rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-family: 'Poppins', system-ui, sans-serif;
  text-decoration: none;
  color: inherit;
}

.logo-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.24em;
}

.logo-santiam {
  color: #33373d;
  font-weight: 300;
}

.logo-media {
  color: var(--cerulean);
  font-weight: 500;
}

.logo-icon {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.95rem;
  font-family: 'Poppins', system-ui, sans-serif;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(46, 94, 170, 0.35);
  background: #ffffff;
  color: var(--navy);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.menu-toggle:hover {
  background: rgba(46, 94, 170, 0.08);
  border-color: var(--cerulean);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--cerulean);
  outline-offset: 2px;
}

.menu-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle-bar + .menu-toggle-bar {
  margin-top: 4px;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: color 0.3s ease, background 0.3s ease;
  position: relative;
}

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

nav a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.6rem;
  width: 18px;
  height: 3px;
  background: var(--navy);
  border-radius: 999px;
}

nav a.nav-cta {
  border: 1px solid var(--cerulean);
  color: var(--navy);
  padding: 0.45rem 1.1rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
}

nav a.nav-cta:hover {
  background: var(--cerulean);
  color: #ffffff;
}

/* Hero */
.hero {
  background-image: url('../img/prompter_hero_background.jpg');
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  height: 550px;
  padding: 0 6vw;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 16, 34, 0.72) 0%, rgba(12, 24, 48, 0.5) 42%, rgba(12, 24, 48, 0.12) 100%);
  opacity: 1;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 520px;
}

.hero h1 {
  font-size: clamp(2.6rem, 3.6vw, 3.7rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

.hero .section-label {
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.25em;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta {
  border: none;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta.primary {
  background: linear-gradient(135deg, #2e5eaa, #5d86ca);
  color: white;
  box-shadow: 0 15px 30px rgba(46, 94, 170, 0.4);
}

.cta.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: white;
}

.cta.secondary:hover {
  background: var(--cerulean);
  border-color: var(--cerulean);
}

.cta:hover {
  transform: translateY(-2px);
}

/* Content Layout */
.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
  padding: 3rem 6vw 2.5rem;
  align-items: start;
}

.content-visual {
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
  align-self: start;
  display: flex;
  justify-content: center;
}

.content-visual img {
  width: min(100%, 380px);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
}

.content-main {
  min-width: 0;
}

/* Story Sections */
.story-section {
  padding: 0 0 3rem;
}

.story-section .section-label {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.story-section h2 {
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  margin-bottom: 0.6rem;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--navy);
}

.story-section > p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.story-grid {
  margin-top: 2rem;
  margin-bottom: 2.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.story-card {
  background: white;
  padding: 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(13, 26, 54, 0.1);
  box-shadow:
    0 12px 24px rgba(6, 26, 59, 0.06),
    0 0 28px rgba(46, 94, 170, 0.22);
  text-align: left;
}

.story-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: var(--navy);
  font-family: 'Poppins', system-ui, sans-serif;
}

.story-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.story-outro {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.5;
}

.software-section {
  padding-top: 0.5rem;
}

.software-intro {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.4rem;
  align-items: start;
}

.software-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.software-copy {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}

.software-cta {
  margin-top: 0;
}

.software-shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(13, 26, 54, 0.12);
  box-shadow:
    0 12px 24px rgba(6, 26, 59, 0.08),
    0 0 22px rgba(46, 94, 170, 0.16);
  background: #ffffff;
}

.software-shot img {
  width: 100%;
  display: block;
}

.software-grid {
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
}

/* Testimonial And Footer */
.testimonial {
  padding: 4rem 6vw 5rem;
  background: linear-gradient(180deg, #213f75, #2d5ca7 55%, #1a3768);
  color: white;
  position: relative;
  overflow: hidden;
}

.testimonial::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.1), transparent 55%);
  opacity: 0.8;
}

.testimonial h2 {
  text-align: center;
  font-family: 'Poppins', system-ui, sans-serif;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1.8rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(5, 14, 35, 0.35);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  border: 3px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, #ffdca8, #ff8fb8);
  position: relative;
}

.testimonial-avatar::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.15));
}

.testimonial-body {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-name {
  margin-top: 0.4rem;
  font-weight: 600;
  font-family: 'Poppins', system-ui, sans-serif;
}

.testimonial-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.footer {
  text-align: center;
  padding: 3rem 2rem 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 1000px) {
  .site-header {
    padding: 0.75rem 4vw;
    flex-wrap: wrap;
    gap: 0.5rem;
    isolation: isolate;
  }

  .logo {
    font-size: 1.75rem;
    gap: 0.55rem;
  }

  .logo-icon {
    width: 48px;
    height: 48px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 4vw;
    right: 4vw;
    width: auto;
    display: grid;
    gap: 0.35rem;
    background: #ffffff;
    border: 1px solid rgba(46, 94, 170, 0.2);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(12, 34, 75, 0.12);
    padding: 0.55rem;
    z-index: 20;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
  }

  nav.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  nav a {
    width: 100%;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
  }

  nav a.active::after {
    display: none;
  }

  nav a.nav-cta {
    margin-top: 0.15rem;
    text-align: center;
  }

  .hero {
    height: auto;
    min-height: 500px;
    padding: 2.5rem 5vw;
    background-position: 70% center;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .content-columns {
    grid-template-columns: 1fr;
    padding: 2.5rem 5vw 2.5rem;
    gap: 1.5rem;
  }

  .content-main {
    padding-top: 0.8rem;
  }

  .software-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 430px;
    padding: 2rem 5vw;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .hero .section-label {
    letter-spacing: 0.18em;
  }

  .content-columns {
    padding: 2rem 5vw 2.25rem;
  }

  .content-visual img {
    width: min(78vw, 300px);
  }

  .story-section {
    padding-bottom: 2.2rem;
  }

  .story-section h2 {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }

  .story-grid {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .story-card {
    padding: 1.3rem;
  }

  .cta {
    font-size: 0.95rem;
    padding: 0.78rem 1.25rem;
  }

  .testimonial {
    padding: 3rem 5vw 3.5rem;
  }

  .testimonial-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial-arrow {
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0.65rem 4vw;
  }

  .logo {
    font-size: 1.48rem;
    gap: 0.45rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  nav a {
    font-size: 0.92rem;
  }

  nav a.nav-cta {
    font-size: 0.86rem;
  }

  .hero {
    min-height: 390px;
    background-position: 68% center;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 10vw, 2.2rem);
  }

  .hero p {
    font-size: 0.96rem;
  }

  .content-visual img {
    width: min(72vw, 250px);
  }

  .section-label {
    letter-spacing: 0.16em;
  }

  .footer {
    padding: 2.2rem 1.2rem 1.6rem;
  }
}
