﻿/* -------------------------------------------------------------------------
   Xustuxka - Enterprise DX & IT Consulting Theme (JP)
   Color Palette: Deep Slate (#0f172a), Trust Royal Blue (#2563eb),
   Vibrant Sky (#0284c7), Light Canvas (#f8fafc), Pure White (#ffffff)
-------------------------------------------------------------------------- */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #38bdf8;
  --primary-subtle: #eff6ff;
  --accent: #0284c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s ease-in-out;
  --container-max: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--primary-dark);
}

button {
  cursor: pointer;
  font-family: inherit;
}

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

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.brand-logo img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  position: relative;
}

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

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

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

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  background: var(--primary);
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: var(--transition);
}

.nav-cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--text-main);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 5.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 50%, #eff6ff 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(120deg, #2563eb, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  background: #ffffff;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  color: var(--primary);
  border-color: #cbd5e1;
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-item strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.trust-item span {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-media {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

.hero-img-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #ffffff;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-left: 4px solid var(--primary);
  max-width: 280px;
}

.floating-card-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.floating-card-text h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.floating-card-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Section Shared Layout */
.section {
  padding: 5.5rem 0;
}

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

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Value Props / Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-card {
  background: #ffffff;
  padding: 2.25rem 1.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.benefit-icon-box {
  width: 56px;
  height: 56px;
  background: var(--primary-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon-box {
  background: var(--primary);
  color: #ffffff;
}

.benefit-icon-box svg {
  width: 28px;
  height: 28px;
}

.benefit-card h3 {
  font-size: 1.175rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.benefit-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* How It Works */
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
}

.step-card {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.step-card:hover .step-num {
  color: var(--primary-light);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Services / Features */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.service-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-highlights {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.service-highlights li {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.service-highlights li svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-img-box img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.about-content p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pillar-item {
  background: #ffffff;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.pillar-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.pillar-item p {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Testimonials / Social Proof */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: #ffffff;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-rating {
  color: #f59e0b;
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.testimonial-rating svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-text {
  font-size: 0.925rem;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-info h4 {
  font-size: 0.925rem;
  font-weight: 700;
  color: #0f172a;
}

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

/* FAQ Section */
.faq-container {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.faq-toggle-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.5rem;
}

.faq-answer-inner {
  padding-bottom: 1.35rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* Lead Form Section */
.contact-section {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 5.5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-perks {
  list-style: none;
  margin-bottom: 2.5rem;
}

.contact-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.925rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.contact-perks li svg {
  width: 20px;
  height: 20px;
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-transparency-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
}

.contact-transparency-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.35rem;
}

.contact-transparency-card p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 0;
}

.form-wrapper {
  background: #ffffff;
  color: var(--text-main);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-header {
  margin-bottom: 1.75rem;
}

.form-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.form-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
}

.form-group label .req {
  color: #ef4444;
  margin-left: 0.2rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-size: 0.925rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--text-main);
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.form-checkbox-group input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-checkbox-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.form-submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-privacy-note {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.75rem;
}

/* Site Footer */
.site-footer {
  background: #0b1120;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #64748b;
  margin-top: 1rem;
  max-width: 360px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

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

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
}

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

.footer-contact-info {
  list-style: none;
  font-size: 0.875rem;
}

.footer-contact-info li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #94a3b8;
}

.footer-contact-info svg {
  width: 16px;
  height: 16px;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  font-size: 0.8rem;
  color: #64748b;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  z-index: 9999;
  border-top: 1px solid #334155;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
  flex: 1 1 500px;
}

.cookie-text a {
  color: #38bdf8;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-cookie-accept {
  padding: 0.55rem 1.35rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie-accept:hover {
  background: var(--primary-dark);
}

.btn-cookie-decline {
  padding: 0.55rem 1.15rem;
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie-decline:hover {
  color: #ffffff;
  border-color: #cbd5e1;
}

/* Legal Pages Styling */
.legal-page-header {
  padding: 4rem 0 2.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
}

.legal-page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-content-wrap {
  padding: 4rem 0 6rem;
}

.legal-article {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #334155;
}

.legal-article h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-subtle);
}

.legal-article p {
  margin-bottom: 1.25rem;
}

.legal-article ul, .legal-article ol {
  margin: 0 0 1.5rem 1.5rem;
}

.legal-article li {
  margin-bottom: 0.5rem;
}

.legal-contact-box {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-media {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .benefits-grid,
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta-btn {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .site-header.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
    align-items: flex-start;
  }
  
  .site-header.mobile-open .nav-links a {
    font-size: 1rem;
    width: 100%;
    padding: 0.5rem 0;
  }
  
  .hero-title {
    font-size: 1.9rem;
  }
  
  .hero-trust-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .benefits-grid,
  .services-grid,
  .testimonials-grid,
  .steps-wrapper {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .hero-floating-card {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }
}
