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

:root {
  /* Minimalist Premium Dark Theme */
  --bg-main: #030305;
  --bg-surface: #0a0a0f;
  --bg-surface-hover: #11111a;
  
  --text-primary: #f8f9fa;
  --text-secondary: #8b949e;
  --text-muted: #484f58;

  --accent-cyan: #00f2fe;
  --accent-cyan-dim: rgba(0, 242, 254, 0.15);
  
  --accent-red: #ff2a5f;
  --accent-red-dim: rgba(255, 42, 95, 0.15);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Tech Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: 
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  z-index: -2;
  pointer-events: none;
}

/* Subtle Ambient Glow */
.bg-gradient {
  position: fixed;
  top: -20vh;
  left: -10vw;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, var(--accent-cyan-dim) 0%, transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3 {
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

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

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.text-gradient-success {
  background: linear-gradient(135deg, #fff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-alert {
  background: linear-gradient(135deg, #fff, var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 10rem 0;
}

/* Header */
header {
  position: fixed;
  top: 0; width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background: rgba(3, 3, 5, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: padding 0.3s ease;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
}

.logo span {
  color: var(--accent-cyan);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  color: var(--accent-cyan);
}

/* ハンバーガーメニューボタン */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--border-color);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
  }

  .header-nav.active {
    right: 0;
  }

  .nav-link {
    display: block;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .header-nav .btn {
    margin-top: 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-primary {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.btn-primary:hover {
  background: transparent;
  color: #fff;
  box-shadow: 0 0 30px var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 0; /* Full screen background */
}

.hero-image-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(3, 3, 5, 1) 0%, rgba(3, 3, 5, 0.7) 40%, rgba(3, 3, 5, 0.1) 100%);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right; /* Focus on the doctor */
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.hero-text {
  max-width: 700px;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
}

/* Cards & Grids */
.flaws-grid, .problems-grid, .solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  display: inline-block;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* Flaw Cards */
.flaw-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--accent-red) inset;
}
.flaw-card h3 {
  color: #fff;
}

/* Solution Cards */
.solution-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--accent-cyan) inset;
}
.solution-card h3 {
  color: #fff;
}

/* Tech Stack */
.tech-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tech-card h3 {
  color: #fff;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  user-select: none;
}

.tech-tag:hover {
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.1);
}

/* Flow Section */
.flow-steps {
  max-width: 800px;
  margin: 4rem auto 0;
}

.step {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 30px; /* Center of number circle */
  top: 60px;
  bottom: -4rem;
  width: 1px;
  background: var(--border-color);
  background-image: linear-gradient(to bottom, var(--border-color) 50%, transparent 50%);
  background-size: 1px 10px;
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-cyan);
  z-index: 2;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.step-content {
  padding-top: 0.5rem;
}

.step-content h3 {
  font-size: 1.8rem;
  color: #fff;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  background: radial-gradient(circle, var(--accent-cyan-dim) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
  text-align: center;
  color: var(--text-muted);
}

/* --- New Section Styles --- */

/* Concept */
.concept-box {
  background: linear-gradient(145deg, rgba(10, 10, 15, 0.8), rgba(3, 3, 5, 0.9));
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 4rem;
  margin: 4rem 0 6rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.concept-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.concept-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.concept-text strong {
  color: var(--accent-cyan);
}

.concept-visual {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
}

.visual-highway {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.visual-highway .on-ramps {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.visual-highway .tag {
  background: rgba(255,255,255,0.1);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
}

.visual-highway .arrow-down {
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.visual-highway .bottleneck {
  width: 100%;
  padding: 1.5rem;
  background: rgba(255, 42, 95, 0.1);
  border: 1px dashed var(--accent-red);
  border-radius: 8px;
  text-align: center;
}

.visual-highway .alert-text {
  color: var(--accent-red);
  font-weight: 800;
}

.visual-highway .single-exit {
  width: 100%;
  display: flex;
  justify-content: center;
}

.visual-highway .tag.exit {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  width: 100%;
  text-align: center;
}

/* Checklist */
.checklist-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--accent-red-dim);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(255, 42, 95, 0.05);
}

.checklist {
  list-style: none;
}

.checklist li {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  line-height: 1.6;
}

.checklist li:last-child {
  margin-bottom: 0;
}

.checklist code {
  background: rgba(255,255,255,0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  color: var(--accent-cyan);
}

/* Case Studies */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.case-card {
  padding: 0;
}

.case-header {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255,255,255,0.02);
}

.case-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.case-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.case-body {
  padding: 2.5rem;
}

.before-after {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.before-after h4 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.before p {
  color: #ff8e8b;
}

.arrow {
  text-align: center;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  font-weight: bold;
}

.after p {
  color: #a8f0c6;
}

/* Approach */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.approach-item {
  display: flex;
  gap: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.approach-item:hover {
  border-color: var(--accent-cyan);
  transform: translateX(10px);
}

.approach-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-cyan-dim);
  line-height: 1;
  min-width: 80px;
}

.approach-text h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
}

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.plan-card.popular {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px var(--accent-cyan-dim);
  transform: scale(1.02);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cyan);
  color: #000;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  z-index: 10;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.plan-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #fff;
}

.plan-tag {
  background: rgba(255,255,255,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #ccc;
}

.plan-desc {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-features {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.plan-features li {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive */
@media (max-width: 992px) {
  section {
    padding: 5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* Hero Section */
  .hero {
    min-height: 90vh;
  }

  .hero-overlay {
    background: linear-gradient(to bottom, rgba(3, 3, 5, 0.8) 0%, rgba(3, 3, 5, 0.95) 100%);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    max-width: 100%;
  }

  .hero-text p {
    margin: 0 auto 2rem;
    font-size: 1rem;
  }

  /* Concept Section */
  .concept-box {
    padding: 2.5rem 1.5rem;
  }

  .concept-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .concept-text p {
    font-size: 1rem;
  }

  /* Cards & Grids */
  .flaws-grid, .problems-grid, .solutions-grid, .cases-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .glass-card {
    padding: 2rem 1.5rem;
  }

  /* Approach */
  .approach-item {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

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

  .approach-number {
    font-size: 2.5rem;
    min-width: auto;
  }

  /* Tech Stack */
  .tech-tag {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  /* Flow Steps */
  .step {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .step:not(:last-child)::after {
    display: none;
  }

  .step-content h3 {
    font-size: 1.4rem;
  }

  /* Plans */
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.popular {
    transform: scale(1);
  }

  /* CTA Section */
  .cta-section {
    padding: 4rem 2rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.95rem;
  }

  section {
    padding: 3rem 0;
  }

  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .concept-box {
    padding: 2rem 1rem;
    margin: 2rem 0 3rem;
  }

  .concept-text p {
    font-size: 0.95rem;
  }

  .visual-highway .tag {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }

  .glass-card {
    padding: 1.5rem 1rem;
  }

  .card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .checklist li {
    font-size: 1rem;
  }

  .approach-item {
    padding: 1.5rem 1rem;
  }

  .approach-number {
    font-size: 2rem;
  }

  .approach-text h3 {
    font-size: 1.2rem;
  }

  .tech-card h3 {
    font-size: 1.2rem;
  }

  .tech-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .step-content h3 {
    font-size: 1.2rem;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .cta-section p {
    font-size: 0.95rem;
  }
}
