/* ========================================
   つなgo AI - lp-08 Design System
   Civic Blue & Yellow Theme
   ======================================== */

/* ========================================
   1. IMPORTS & VARIABLES
   ======================================== */

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

:root {
  /* lp-08 Core Colors (3 colors ONLY) */
  --color-white: #FFFFFF;
  --color-blue: #1A3A8A;
  --color-yellow: #F5E500;

  /* Blue Shades & Variants */
  --color-blue-dark: #0F2870;
  --color-blue-light: rgba(26, 58, 138, 0.08);
  --color-blue-hover: rgba(26, 58, 138, 0.12);

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Noto Sans JP', sans-serif;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.8;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide: 0.025em;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 58, 138, 0.05);
  --shadow-md: 0 4px 6px rgba(26, 58, 138, 0.1);
  --shadow-lg: 0 10px 15px rgba(26, 58, 138, 0.1);
  --shadow-xl: 0 20px 25px rgba(26, 58, 138, 0.15);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  --z-notification: 700;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-width: 1200px;
  --container-padding: 40px;
  --band-width: 22%;
  --band-margin: 40px;
}

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --band-width: 18%;
  }
}

/* ========================================
   2. RESET & BASE STYLES
   ======================================== */

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

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-white);
  color: var(--color-blue);
  font-family: var(--font-primary), var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-normal);
  overflow-x: hidden;
}

/* ========================================
   3. TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 900;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-blue);
}

h1 {
  font-size: clamp(40px, 6vw, 56px);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: clamp(24px, 3vw, 40px);
  margin-bottom: var(--space-md);
}

h4 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

h5 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

h6 {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-blue);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-blue);
  line-height: var(--line-height-relaxed);
  font-weight: 400;
}

p.lead {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-blue);
}

p.muted {
  color: rgba(26, 58, 138, 0.7);
  font-size: var(--font-size-sm);
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: 500;
}

a:hover {
  color: var(--color-blue-dark);
  text-decoration: underline;
}

strong {
  font-weight: 700;
  color: var(--color-blue);
}

em {
  font-style: italic;
  color: var(--color-blue);
}

code {
  background-color: var(--color-blue-light);
  color: var(--color-blue);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  font-weight: 500;
}

pre {
  background-color: var(--color-blue-light);
  border: 1px solid rgba(26, 58, 138, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow-x: auto;
  margin-bottom: var(--space-lg);
  color: var(--color-blue);
}

pre code {
  background-color: transparent;
  color: var(--color-blue);
  padding: 0;
  border: none;
}

/* ========================================
   4. LAYOUT & CONTAINERS
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

.section {
  padding: var(--space-5xl) var(--container-padding);
  background-color: var(--color-white);
  color: var(--color-blue);
}

.section.dense {
  padding: var(--space-4xl) var(--container-padding);
}

.section.compact {
  padding: var(--space-3xl) var(--container-padding);
}

.section-light {
  background-color: var(--color-white);
  color: var(--color-blue);
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
  color: var(--color-blue);
}

.section-light p {
  color: var(--color-blue);
}

.section-light a {
  color: var(--color-blue);
}

/* ========================================
   5. LP PAGE LAYOUT - Yellow Band System
   ======================================== */

.lp-layout {
  position: relative;
  min-height: 100vh;
  display: flex;
}

.lp-band {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--band-width);
  height: 100%;
  background-color: var(--color-yellow);
  z-index: 10;
  animation: bandSlideIn 0.6s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--band-margin) 0;
}

@keyframes bandSlideIn {
  from {
    width: 0;
  }
  to {
    width: var(--band-width);
  }
}

.lp-band-top,
.lp-band-bottom {
  position: absolute;
  left: 0;
  width: var(--band-width);
  height: var(--band-margin);
  background-color: var(--color-blue);
  z-index: 12;
}

.lp-band-top {
  top: 0;
}

.lp-band-bottom {
  bottom: 0;
}

.lp-band-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: var(--color-blue);
  font-family: var(--font-secondary);
  font-size: var(--font-size-lg);
  font-weight: 900;
  letter-spacing: var(--letter-spacing-wide);
  transform: rotate(180deg);
  margin-top: calc(var(--band-margin) + var(--space-2xl));
}

.lp-band-label-sub {
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-top: var(--space-md);
}

.lp-content {
  margin-left: var(--band-width);
  width: calc(100% - var(--band-width));
  background-color: var(--color-white);
  color: var(--color-blue);
  position: relative;
  z-index: 11;
  animation: contentFadeIn 0.6s ease-out 0.2s both;
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lp-page-number {
  position: absolute;
  right: var(--space-2xl);
  bottom: var(--space-2xl);
  width: 48px;
  height: 48px;
  background-color: var(--color-blue);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 20;
}

@media (max-width: 768px) {
  .lp-layout {
    flex-direction: column;
  }

  .lp-band {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: var(--space-lg) 0;
    align-items: center;
    justify-content: center;
  }

  .lp-band-top,
  .lp-band-bottom {
    display: none;
  }

  .lp-band-label {
    writing-mode: horizontal-tb;
    transform: none;
    margin-top: 0;
    margin-right: var(--space-lg);
  }

  .lp-band-label-sub {
    display: none;
  }

  .lp-content {
    margin-left: 0;
    width: 100%;
  }

  .lp-page-number {
    display: none;
  }
}

/* ========================================
   6. FLEX & GRID UTILITIES
   ======================================== */

.flex {
  display: flex;
}

.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

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

.flex-start {
  align-items: flex-start;
  justify-content: flex-start;
}

.flex-end {
  align-items: flex-end;
  justify-content: flex-end;
}

.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

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

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   7. NAVIGATION
   ======================================== */

nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-white);
  border-bottom: 1px solid rgba(26, 58, 138, 0.1);
  transition: all var(--transition-base);
}

nav.scrolled {
  box-shadow: var(--shadow-md);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--container-padding);
}

.nav-logo {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-blue);
  text-decoration: none;
  letter-spacing: var(--letter-spacing-tight);
  font-family: var(--font-secondary);
}

.nav-logo:hover {
  color: var(--color-blue-dark);
}

.nav-menu {
  display: flex;
  gap: var(--space-2xl);
  list-style: none;
  align-items: center;
}

.nav-menu a {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-blue);
  transition: color var(--transition-fast);
  position: relative;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.nav-menu a:hover {
  color: var(--color-blue-dark);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-yellow);
  transition: width var(--transition-fast);
}

.nav-menu a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-menu {
    gap: var(--space-lg);
    font-size: var(--font-size-xs);
  }
}

/* ========================================
   8. HERO & COVER SECTIONS
   ======================================== */

.hero {
  position: relative;
  padding: var(--space-5xl) var(--container-padding);
  background-color: var(--color-white);
  color: var(--color-blue);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 64px);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.hero p {
  font-size: var(--font-size-xl);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
  color: rgba(26, 58, 138, 0.8);
}

.hero-cta {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

/* ========================================
   9. FEATURE CARDS & SECTIONS
   ======================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.feature-card {
  background: var(--color-white);
  border: 1px solid rgba(26, 58, 138, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.feature-card:hover {
  border-color: var(--color-yellow);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-yellow);
  border-radius: 50%;
  color: var(--color-blue);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.feature-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  color: var(--color-blue);
}

.feature-card p {
  color: rgba(26, 58, 138, 0.8);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
  font-size: var(--font-size-sm);
}

/* Check list items */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-blue);
  border-radius: 50%;
  color: var(--color-white);
  flex-shrink: 0;
  font-weight: 700;
}

.check-text {
  color: var(--color-blue);
  font-weight: 500;
  padding-top: 2px;
}

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

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   10. BUTTONS & INTERACTIVE ELEMENTS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  gap: var(--space-sm);
  font-family: var(--font-primary);
}

.btn-primary {
  background-color: var(--color-blue);
  color: var(--color-white);
}

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

.btn-secondary {
  background-color: var(--color-yellow);
  color: var(--color-blue);
}

.btn-secondary:hover {
  background-color: #FFD700;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
}

.btn-outline:hover {
  background-color: var(--color-blue-light);
  border-color: var(--color-blue-dark);
}

.btn-small {
  padding: 8px 16px;
  font-size: var(--font-size-xs);
}

.btn-large {
  padding: 16px 32px;
  font-size: var(--font-size-base);
}

/* ========================================
   11. FORMS & INPUTS
   ======================================== */

.form-group {
  margin-bottom: var(--space-xl);
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--color-blue);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(26, 58, 138, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-blue);
  background-color: var(--color-white);
  transition: all var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: rgba(26, 58, 138, 0.5);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(26, 58, 138, 0.1);
}

input:disabled,
textarea:disabled,
select:disabled {
  background-color: var(--color-blue-light);
  color: rgba(26, 58, 138, 0.5);
  cursor: not-allowed;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231A3A8A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-blue);
}

.form-error {
  color: #DC2626;
  font-size: var(--font-size-sm);
  margin-top: var(--space-sm);
}

.form-success {
  color: #059669;
  font-size: var(--font-size-sm);
  margin-top: var(--space-sm);
}

/* ========================================
   12. BADGES & TAGS
   ======================================== */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.badge-primary {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.badge-secondary {
  background-color: var(--color-yellow);
  color: var(--color-blue);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 12px;
  background-color: var(--color-yellow);
  color: var(--color-blue);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

/* ========================================
   13. CARDS & CONTAINERS
   ======================================== */

.card {
  background-color: var(--color-white);
  border: 1px solid rgba(26, 58, 138, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(26, 58, 138, 0.1);
}

.card-header h3 {
  margin-bottom: 0;
}

.card-body {
  margin-bottom: var(--space-lg);
}

.card-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(26, 58, 138, 0.1);
}

/* Arch cards (yellow top with curved border) */
.arch-card {
  background: var(--color-yellow);
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  color: var(--color-blue);
  text-align: center;
  transition: all var(--transition-base);
  animation: archRiseIn 0.6s ease-out backwards;
}

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

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

.arch-card h4 {
  color: var(--color-blue);
  margin-bottom: var(--space-md);
}

.arch-card p {
  color: var(--color-blue);
  font-weight: 500;
}

/* ========================================
   14. SPEECH BUBBLES & CALLOUTS
   ======================================== */

.speech-bubble {
  background-color: var(--color-yellow);
  color: var(--color-blue);
  padding: var(--space-lg);
  border-radius: 16px;
  position: relative;
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 0 solid transparent;
  border-top: 10px solid var(--color-yellow);
}

.callout {
  background-color: var(--color-blue-light);
  border-left: 4px solid var(--color-blue);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  color: var(--color-blue);
}

.callout p {
  margin-bottom: 0;
}

/* ========================================
   15. TABLES
   ======================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
}

thead {
  background-color: var(--color-blue);
  color: var(--color-white);
}

th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: 700;
  border: 1px solid rgba(26, 58, 138, 0.2);
}

td {
  padding: var(--space-md) var(--space-lg);
  border: 1px solid rgba(26, 58, 138, 0.1);
  color: var(--color-blue);
}

tbody tr:nth-child(even) {
  background-color: var(--color-blue-light);
}

tbody tr:hover {
  background-color: rgba(26, 58, 138, 0.15);
}

/* ========================================
   16. MODALS & DIALOGS
   ======================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 58, 138, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal-backdrop);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
  z-index: var(--z-modal);
  animation: slideUp 0.3s ease-out;
}

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

.modal-header {
  padding: var(--space-xl);
  border-bottom: 1px solid rgba(26, 58, 138, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin-bottom: 0;
  color: var(--color-blue);
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--color-blue);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-blue-dark);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-footer {
  padding: var(--space-xl);
  border-top: 1px solid rgba(26, 58, 138, 0.1);
  display: flex;
  gap: var(--space-lg);
  justify-content: flex-end;
}

/* ========================================
   17. ALERTS & NOTIFICATIONS
   ======================================== */

.alert {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.alert-icon {
  flex-shrink: 0;
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.alert-primary {
  background-color: var(--color-blue-light);
  border-left: 4px solid var(--color-blue);
  color: var(--color-blue);
}

.alert-success {
  background-color: rgba(5, 150, 105, 0.1);
  border-left: 4px solid #059669;
  color: #059669;
}

.alert-warning {
  background-color: rgba(217, 119, 6, 0.1);
  border-left: 4px solid #D97706;
  color: #D97706;
}

.alert-error {
  background-color: rgba(220, 38, 38, 0.1);
  border-left: 4px solid #DC2626;
  color: #DC2626;
}

.alert p {
  margin-bottom: 0;
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: var(--space-2xl);
  right: var(--space-2xl);
  background-color: var(--color-blue);
  color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-notification);
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   18. DASHBOARD LAYOUT
   ======================================== */

.dashboard-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--color-white);
}

.dashboard-sidebar {
  width: 250px;
  background-color: var(--color-white);
  border-right: 1px solid rgba(26, 58, 138, 0.1);
  padding: var(--space-2xl) 0;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: var(--z-sticky);
}

.dashboard-main {
  margin-left: 250px;
  width: calc(100% - 250px);
  padding: var(--space-2xl);
}

.dashboard-header {
  margin-bottom: var(--space-3xl);
}

.dashboard-header h1 {
  color: var(--color-blue);
  margin-bottom: var(--space-lg);
}

.sidebar-item {
  padding: 12px var(--space-lg);
  margin: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sidebar-item:hover {
  background-color: var(--color-blue-light);
  color: var(--color-blue-dark);
}

.sidebar-item.active {
  background-color: var(--color-blue-light);
  color: var(--color-blue);
  font-weight: 700;
}

.sidebar-item icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

/* Dashboard cards */
.stat-card {
  background: var(--color-white);
  border: 1px solid rgba(26, 58, 138, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.stat-card-title {
  font-size: var(--font-size-sm);
  color: rgba(26, 58, 138, 0.7);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  font-weight: 600;
}

.stat-card-value {
  font-size: var(--font-size-4xl);
  color: var(--color-blue);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.stat-card-change {
  font-size: var(--font-size-sm);
  color: #059669;
  font-weight: 500;
}

.stat-card-change.negative {
  color: #DC2626;
}

@media (max-width: 1024px) {
  .dashboard-sidebar {
    width: 200px;
  }

  .dashboard-main {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(26, 58, 138, 0.1);
    padding: var(--space-lg) 0;
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    overflow-y: hidden;
  }

  .dashboard-main {
    margin-left: 0;
    width: 100%;
    padding: var(--space-lg);
  }

  .sidebar-item {
    flex-shrink: 0;
    margin: 0 var(--space-sm);
  }
}

/* ========================================
   19. STEP WIZARD & PROGRESS
   ======================================== */

.wizard-container {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-md);
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3xl);
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(26, 58, 138, 0.1);
  z-index: -1;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
  position: relative;
}

.wizard-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(26, 58, 138, 0.1);
  color: var(--color-blue);
  font-weight: 700;
  z-index: 1;
}

.wizard-step.active .wizard-step-number {
  background-color: var(--color-yellow);
  color: var(--color-blue);
  box-shadow: 0 0 0 4px var(--color-blue-light);
}

.wizard-step.completed .wizard-step-number {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.wizard-step-label {
  font-size: var(--font-size-sm);
  color: rgba(26, 58, 138, 0.7);
  text-align: center;
  font-weight: 500;
}

.wizard-step.active .wizard-step-label {
  color: var(--color-blue);
  font-weight: 700;
}

.wizard-content {
  animation: fadeIn 0.3s ease-out;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(26, 58, 138, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.progress-fill {
  height: 100%;
  background-color: var(--color-yellow);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* ========================================
   20. PRICING CARDS
   ======================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.pricing-card {
  background: var(--color-white);
  border: 2px solid rgba(26, 58, 138, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-yellow);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.pricing-card:hover {
  border-color: var(--color-blue);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-yellow);
  color: var(--color-blue);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.pricing-title {
  font-size: var(--font-size-2xl);
  color: var(--color-blue);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.pricing-price {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--color-blue);
  font-weight: 900;
  margin-bottom: var(--space-sm);
}

.pricing-currency {
  font-size: var(--font-size-lg);
  vertical-align: super;
}

.pricing-period {
  font-size: var(--font-size-sm);
  color: rgba(26, 58, 138, 0.7);
  margin-bottom: var(--space-2xl);
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-2xl);
}

.pricing-features li {
  list-style: none;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(26, 58, 138, 0.1);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.pricing-features li::before {
  content: '✓';
  font-weight: 700;
  color: var(--color-yellow);
  font-size: var(--font-size-lg);
}

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

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

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   21. LOADING STATES
   ======================================== */

.skeleton {
  background: linear-gradient(90deg, rgba(26, 58, 138, 0.1) 25%, rgba(26, 58, 138, 0.2) 50%, rgba(26, 58, 138, 0.1) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 16px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-sm);
}

.skeleton-title {
  height: 24px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-sm);
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(26, 58, 138, 0.1);
  border-top-color: var(--color-yellow);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* ========================================
   22. UTILITY CLASSES
   ======================================== */

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

.text-blue { color: var(--color-blue); }
.text-yellow { color: var(--color-yellow); }
.text-white { color: var(--color-white); }

.text-muted { color: rgba(26, 58, 138, 0.7); }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

.w-full { width: 100%; }
.w-half { width: 50%; }
.max-w-sm { max-width: 384px; }
.max-w-md { max-width: 448px; }
.max-w-lg { max-width: 512px; }
.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* ========================================
   23. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  .container {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(32px, 5vw, 48px);
  }

  h2 {
    font-size: clamp(28px, 4vw, 40px);
  }

  .section {
    padding: var(--space-4xl) var(--space-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 2rem;
    --space-3xl: 3rem;
    --container-padding: 20px;
  }

  h1 {
    font-size: clamp(28px, 4vw, 40px);
  }

  h2 {
    font-size: clamp(24px, 3vw, 32px);
  }

  h3 {
    font-size: clamp(20px, 2vw, 28px);
  }

  .section {
    padding: var(--space-3xl) var(--space-lg);
  }

  .hero {
    padding: var(--space-3xl) var(--space-lg);
    min-height: 400px;
  }

  .hero h1 {
    font-size: clamp(32px, 6vw, 48px);
  }

  .nav-menu {
    gap: var(--space-lg);
  }

  .modal {
    width: 95%;
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --container-padding: 16px;
  }

  h1 {
    font-size: clamp(24px, 5vw, 32px);
  }

  h2 {
    font-size: clamp(20px, 4vw, 28px);
  }

  h3 {
    font-size: clamp(18px, 3vw, 24px);
  }

  .section {
    padding: var(--space-2xl) var(--space-md);
  }

  .hero {
    padding: var(--space-2xl) var(--space-md);
    min-height: 300px;
  }

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

  .btn {
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .wizard-steps {
    flex-direction: column;
    margin-bottom: var(--space-2xl);
  }

  .wizard-steps::before {
    left: 20px;
    top: 40px;
    bottom: 0;
    width: 2px;
    height: auto;
    right: auto;
  }

  .wizard-step {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .wizard-step-number {
    flex-shrink: 0;
  }

  .wizard-step-label {
    text-align: left;
    margin-top: 2px;
  }

  .toast {
    left: var(--space-lg);
    right: var(--space-lg);
    bottom: var(--space-lg);
  }

  .modal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .dashboard-sidebar {
    order: 2;
  }

  .dashboard-main {
    order: 1;
  }
}

/* ========================================
   24. PRINT STYLES
   ======================================== */

@media print {
  body {
    background: var(--color-white);
    color: var(--color-blue);
  }

  nav,
  .toast,
  .modal-backdrop,
  .btn-close {
    display: none;
  }

  .lp-band,
  .lp-band-top,
  .lp-band-bottom {
    display: none;
  }

  .lp-content {
    margin-left: 0;
    width: 100%;
  }

  a {
    color: var(--color-blue);
    text-decoration: underline;
  }

  .page-break {
    page-break-after: always;
  }
}

/* ========================================
   25. ACCESSIBILITY
   ======================================== */

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

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

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

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-white: #FFFFFF;
    --color-blue: #1A3A8A;
    --color-yellow: #F5E500;
  }
}
