:root {
  --color-bg-body: #0f0c18;
  --color-bg-surface: rgba(255, 255, 255, 0.03);
  --color-bg-surface-hover: rgba(255, 255, 255, 0.08);
  --color-primary: #ff4fa9;
  --color-primary-glow: rgba(255, 79, 169, 0.6);
  --color-secondary: #8b5cf6;
  --color-secondary-glow: rgba(139, 92, 246, 0.6);
  --color-accent: #f472b6;
  --color-text-main: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-border: rgba(255, 255, 255, 0.1);
  
  --font-heading: "Poppins", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Poppins", sans-serif;

  --gradient-logo: linear-gradient(135deg, #ff4fa9, #8b5cf6);
  --gradient-main: linear-gradient(135deg, #1f1432 0%, #0f0c18 100%);
  --gradient-hero-text: linear-gradient(to right, #fff, #fbcfe8);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  --gradient-button: linear-gradient(90deg, #ff4fa9, #8b5cf6, #ff4fa9);

  --shadow-glow: 0 0 40px rgba(255, 79, 169, 0.25);
  --shadow-card: 0 10px 30px rgba(0,0,0,0.3);

  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 12px;
  --radius-full: 9999px;

  --max-width: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg-body);
  background-image: var(--gradient-main);
  color: var(--color-text-main);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

p {
  margin: 0;
  color: var(--color-text-muted);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(15, 12, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.logo__emblem {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-logo);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 79, 169, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav a:hover {
  color: white;
}

.nav-cta {
  padding: 10px 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: white !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(255, 79, 169, 0.4);
}

/* Sections */
section {
  padding: 100px 0;
  position: relative;
}

/* Hero */
.hero {
  padding-top: 180px;
  padding-bottom: 140px;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 1000px;
  background: radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.15), transparent 60%),
              radial-gradient(circle at 20% 60%, rgba(255, 79, 169, 0.1), transparent 50%);
  z-index: -1;
  pointer-events: none;
}

.hero__tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 79, 169, 0.15);
  border: 1px solid rgba(255, 79, 169, 0.3);
  color: #ff9ecf;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.hero__subtitle {
  font-size: 1.125rem;
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  background: black;
  color: white;
  border-radius: 10px;
  border: 1px solid #333;
  padding: 8px 16px;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.app-badge svg {
  width: 28px;
  height: 28px;
}

.app-badge-text {
  text-align: left;
}
.app-badge-text small {
  display: block;
  font-size: 0.65rem;
  line-height: 1;
}
.app-badge-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Features Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

/* Cards */
.card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--color-bg-surface-hover);
  border-color: rgba(255, 79, 169, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 79, 169, 0.2), rgba(139, 92, 246, 0.2));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card__title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: white;
}

.card__desc {
  flex-grow: 1;
  margin-bottom: 24px;
  font-size: 1rem;
}

.card__list {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.card__list li::before {
  content: "✓";
  color: var(--color-secondary);
  font-weight: bold;
}

/* Feature Showcase (Side by Side) */
.showcase {
  display: flex;
  align-items: center;
  gap: 64px;
}
.showcase:nth-child(even) {
  flex-direction: row-reverse;
}

.showcase__content {
  flex: 1;
}

.showcase__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mockup {
  width: 320px;
  height: 640px;
  background: #1a1a1a;
  border-radius: 40px;
  border: 8px solid #2a2a2a;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
}

.mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-gradient {
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Footer */
.footer {
  margin-top: 80px;
  padding: 80px 0 40px;
  border-top: 1px solid var(--color-border);
  background: rgba(0,0,0,0.2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer__desc {
  max-width: 360px;
  margin-top: 16px;
}

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: white;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.footer__bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
}

/* Utilities */
.text-center { text-align: center; }
.mb-lg { margin-bottom: 64px; }
.mb-md { margin-bottom: 32px; }

/* Contact Specific */
.contact-form-container {
  max-width: 800px;
  margin: 120px auto 40px;
  padding: 40px;
  background: var(--color-bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--gradient-button);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
  background-size: 200% auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 79, 169, 0.4);
}
.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 79, 169, 0.5);
}

@media (max-width: 768px) {
  .hero__title { font-size: 3rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .showcase { flex-direction: column !important; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .header__inner { flex-direction: column; gap: 16px; }
  .nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
}
