/* ===========================
   BASE
=========================== */
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 4px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px);
}
.btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

.btn-primary {
  background: #000;
  color: #fff;
  border-color: #000;
}
.btn-primary:hover {
  background: #333;
  border-color: #333;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.btn-outline {
  background: transparent;
  color: #000;
  border-color: #000;
}
.btn-outline:hover {
  background: #000;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* dark section用の白ボタン（送信ボタンなど） */
.btn-accent {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.btn-accent:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.18);
}
.btn-accent:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* dark section用 */
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

.btn-large {
  padding: 18px 52px;
  font-size: 18px;
}

/* ===========================
   NAVIGATION
=========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  border-radius: 4px;
  transition: background var(--transition);
}
.nav-links a:hover {
  background: var(--color-section-alt);
}
.nav-links .nav-cta {
  background: #000;
  color: #fff;
  padding: 10px 22px;
  border-radius: 4px;
}
.nav-links .nav-cta:hover {
  background: #333;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO  ← 元のデザインを忠実に再現
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* 背景をゆっくりズームアウト（Ken Burns） */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('./assets/images/HeroBackground.jpg') center center / cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 2.4s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 60px 80px 80px;
  max-width: 1440px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero-mock {
  flex-shrink: 0;
  width: 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: heroMockIn 1s 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-mock-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  animation: floatY 6s 2.8s ease-in-out infinite;
}

.hero-speed {
  font-size: clamp(96px, 15.5vw, 220px);
  font-weight: 900;
  color: #000000;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: heroTextAppear 0.4s 0.55s ease forwards;
}
.hero-speed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 2;
  animation: heroBlockWipe 0.85s 0s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.hero-title {
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

.hero-line {
  display: block;
  position: relative;
  overflow: hidden;
  opacity: 0;
  line-height: 1.2;
  white-space: nowrap;
  width: max-content;
}
.hero-line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 2;
}

.hero-line-1 {
  animation: heroTextAppear 0.4s 1.05s ease forwards;
}
.hero-line-1::before {
  animation: heroBlockWipe 0.85s 0.45s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.hero-line-2 {
  animation: heroTextAppear 0.4s 1.55s ease forwards;
}
.hero-line-2::before {
  animation: heroBlockWipe 0.85s 0.95s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.hero-sub {
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.9;
  opacity: 0;
  animation: fadeUp 0.7s 1.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 2.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-scroll {
  position: absolute;
  z-index: 1;
  bottom: 36px;
  left: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll-arrow {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
  margin-top: -6px;
}

/* ===========================
   SECTIONS BASE
=========================== */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--color-section-alt);
}
.section-dark {
  background: #000;
  color: #fff;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-label { color: rgba(255,255,255,0.35); }
.section-dark .section-sub   { color: rgba(255,255,255,0.5); }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #000;
  margin-bottom: 48px;
}

.section-sub {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-top: -32px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ===========================
   PROFILE BRIEF
=========================== */
.profile-brief {
  display: flex;
  gap: 64px;
  align-items: center;
}

.profile-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--color-section-alt);
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 900;
  color: var(--color-text-muted);
  letter-spacing: 0;
  overflow: hidden;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #000;
  margin-bottom: 8px;
}

.profile-role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.profile-desc {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 32px;
}

/* ===========================
   ABOUT
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-text {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
}
.about-text p { margin-bottom: 24px; }
.about-text strong { font-weight: 700; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature {
  display: flex;
  gap: 14px;
  padding: 22px 20px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  align-items: flex-start;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.feature:hover {
  border-color: #000;
  box-shadow: 3px 3px 0 #000;
}
.section-alt .feature { background: #fff; }

.feature-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}

.feature-body h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #000;
}
.feature-body p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===========================
   WORKS
=========================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-card {
  background: #111;
  transition: background var(--transition), transform var(--transition);
}
.work-card:hover {
  background: #191919;
  transform: translateY(-6px);
}

.work-img {
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

/* ホバー時に光が走る */
.work-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
  transform: translateX(-101%);
  pointer-events: none;
}
.work-card:hover .work-img::after {
  transition: transform 0.7s ease;
  transform: translateX(101%);
}
.work-img-1 { background: linear-gradient(135deg, #0d0d1a 0%, #1a1a3e 100%); }
.work-img-2 { background: linear-gradient(135deg, #1a0d00 0%, #3d1f00 100%); }
.work-img-3 { background: linear-gradient(135deg, #0d1a0d 0%, #1a3a1a 100%); }

.work-img-label {
  font-size: 44px;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  position: absolute;
  bottom: 8px;
  right: 16px;
  line-height: 1;
  pointer-events: none;
  font-style: italic;
  transition: color var(--transition), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-img-label {
  color: rgba(255,255,255,0.14);
  transform: translateX(-8px) scale(1.06);
}

.work-info { padding: 24px; }

.work-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border-radius: 100px;
  margin-bottom: 12px;
}
.work-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}
.work-info p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ===========================
   PLANS
=========================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.plan {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.plan:hover {
  border-color: #000;
  box-shadow: 4px 4px 0 #000;
  transform: translateY(-2px);
}

.plan-featured {
  border-color: #000;
  background: #000;
  color: #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}
.plan-featured:hover {
  box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
}
.plan-featured .plan-header p { color: rgba(255,255,255,0.5); }
.plan-featured .plan-list li {
  color: rgba(255,255,255,0.8);
  border-bottom-color: rgba(255,255,255,0.1);
}
.plan-featured .plan-list li::before { color: #fff; }
.plan-featured .plan-delivery { color: #aaa !important; font-weight: 700; }

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.08em;
}
.plan-featured .plan-badge {
  background: #fff;
  color: #000;
}

.plan-header h3 {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 8px;
}
.plan-price {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 8px 0 4px;
}
.plan-price span { font-size: 22px; font-weight: 700; }
.plan-header p { font-size: 13px; color: var(--color-text-muted); }

.plan-list {
  list-style: none;
  flex: 1;
}
.plan-list li {
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-list li::before {
  content: "✓";
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
  color: #000;
}
.plan-list li:last-child { border-bottom: none; }
.plan-delivery { font-weight: 700; color: #666 !important; }

.plans-note {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===========================
   FLOW
=========================== */
.flow-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.flow-arrow {
  flex-shrink: 0;
  width: 40px;
  position: relative;
  margin-top: 100px;
}
.flow-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-top: 2.5px solid #000;
  border-right: 2.5px solid #000;
  rotate: 45deg;
}

.flow-num {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.flow-img {
  width: 140px;
  height: 110px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.flow-step:hover .flow-img {
  transform: translateY(-6px) scale(1.04);
}

.flow-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flow-title {
  font-size: 17px;
  font-weight: 900;
  color: #000;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.flow-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.85;
}

/* フロータイムライン：全ステップ横断の両矢印 */
.flow-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}

.flow-tl-side {
  flex: 1;
  height: 1.5px;
  background: #000;
  position: relative;
}

/* 表示時に線が左右へ伸びる */
.js .flow-timeline .flow-tl-side {
  transform: scaleX(0);
  transition: transform 1s 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .flow-timeline .flow-tl-left  { transform-origin: right center; }
.js .flow-timeline .flow-tl-right { transform-origin: left center; }
.js .flow-timeline.is-visible .flow-tl-side { transform: scaleX(1); }

.flow-tl-left::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #000;
  border-left: 2px solid #000;
  transform: translateY(-50%) rotate(-45deg);
}

.flow-tl-right::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  transform: translateY(-50%) rotate(45deg);
}

.flow-tl-label {
  padding: 6px 24px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
  background: var(--color-section-alt);
  color: #000;
}

/* ===========================
   PRICING
=========================== */
.pricing-wrap {
  display: flex;
  gap: 80px;
  align-items: center;
  padding: 56px 64px;
  border: 2px solid #000;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.pricing-left {
  flex-shrink: 0;
}

.pricing-price {
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #000;
  margin-bottom: 20px;
}

.pricing-from {
  font-size: 0.48em;
  font-weight: 900;
}

.pricing-free {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  border: 2px solid #000;
  border-radius: 100px;
  display: inline-block;
  padding: 8px 20px;
  margin-bottom: 36px;
  white-space: nowrap;
}

.pricing-right {
  flex: 1;
}

.pricing-list {
  list-style: none;
}

.pricing-list li {
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
}

.pricing-list li::before {
  content: "✓";
  font-weight: 900;
  font-size: 12px;
  color: #000;
  flex-shrink: 0;
}

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

.pricing-delivery {
  font-weight: 700;
}

/* ===========================
   CONTACT
=========================== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 15px;
  color: #fff;
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group select option { background: #1a1a1a; color: #fff; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
}

.required { color: #ff6b6b; }

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.contact-success {
  display: none;
  text-align: center;
  padding: 60px 40px;
  max-width: 480px;
  margin: 0 auto;
}
.contact-success.show { display: block; }

.success-icon {
  width: 64px;
  height: 64px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  margin: 0 auto 24px;
}
.contact-success p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: #000;
  padding: 40px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-nav a:hover { color: #fff; }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  text-align: center;
}

/* ===========================
   ANIMATIONS
=========================== */
/* 右から黒帯が入り、テキストがフェードイン */
@keyframes heroBlockWipe {
  0%   { transform: translateX(101%); }
  42%  { transform: translateX(0); }
  58%  { transform: translateX(0); }
  100% { transform: translateX(-101%); }
}

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

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

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

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* ===========================
   SCROLL PROGRESS BAR
=========================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #000;
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 200;
  pointer-events: none;
}

/* ===========================
   MARQUEE
=========================== */
.marquee {
  background: #000;
  overflow: hidden;
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}

.marquee-item {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
}

.marquee-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
}

/* ===========================
   SCROLL REVEAL
=========================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   REDUCED MOTION
=========================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 960px) {
  .flow-grid {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .flow-step {
    width: 100%;
    max-width: 400px;
    padding: 0 0 8px;
  }
  .flow-arrow {
    width: auto;
    height: 40px;
    margin-top: 0;
  }
  .flow-arrow::after {
    border-top: none;
    border-right: none;
    border-bottom: 2.5px solid #000;
    border-left: 2.5px solid #000;
    rotate: -135deg;
  }
  .pricing-wrap {
    flex-direction: column;
    gap: 40px;
    padding: 40px 32px;
    align-items: flex-start;
  }
  .profile-brief {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .hero-inner {
    flex-direction: column;
    gap: 40px;
  }
  .hero-mock {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .works-grid {
    grid-template-columns: 1fr;
    border-radius: 0;
  }
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto 24px;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }

  .nav-inner { padding: 0 20px; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 22px; padding: 12px 28px; }
  .nav-toggle { display: flex; }

  .hero-inner { padding: 48px 20px 60px; flex-direction: column; gap: 32px; }
  .hero-mock { width: 100%; }
  .hero-scroll { left: 20px; }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-features { grid-template-columns: 1fr; }

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

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-nav { justify-content: center; }

  .br-sp { display: inline; }
}

@media (min-width: 641px) {
  .br-sp { display: none; }
}
