/* ========================================
   Teiten LP — style.css
   Design System: fryx404 Pop
   ======================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors — Light */
  --bg:       #FFFFFF;
  --surface:  #FFFFFF;
  --primary:  #00D1FF;
  --primary-dark: #00A3CC;
  --accent:   #FFD600;
  --text:     #2D3436;
  --text-sub: #636E72;
  --shadow:   0 8px 32px rgba(0, 209, 255, 0.12);
  --shadow-sm: 0 2px 12px rgba(0, 209, 255, 0.08);
  --card-bg:  #F8FAFB;
  --border:   rgba(0,0,0,0.06);

  /* Element Specific Light Variables */
  --header-bg: rgba(255,255,255,0.82);
  --mockup-shadow: 0 20px 60px rgba(0, 209, 255, 0.18);
  --icon-wrap-bg: linear-gradient(135deg, rgba(0,209,255,0.10), rgba(0,209,255,0.04));

  /* Typography */
  --font-en: 'Outfit', 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --font: var(--font-jp), var(--font-en);

  /* Spacing */
  --section-y: 120px;
  --max-w: 1120px;
  --radius: 20px;
  --radius-sm: 12px;
}

/* ---------- Dark Mode ---------- */
:root[data-theme="dark"] {
  --bg:       #000000;
  --surface:  #1A1A1A;
  --text:     #F5F5F5;
  --text-sub: #B0B0B0;
  --shadow:   0 8px 32px rgba(0, 209, 255, 0.06);
  --shadow-sm: 0 2px 12px rgba(0, 209, 255, 0.04);
  --card-bg:  #111111;
  --border:   rgba(255,255,255,0.08);

  /* Element Specific Dark Variables */
  --header-bg: rgba(0,0,0,0.82);
  --mockup-shadow: 0 20px 60px rgba(0, 209, 255, 0.10);
  --icon-wrap-bg: linear-gradient(135deg, rgba(0,209,255,0.15), rgba(0,209,255,0.06));
}

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Utilities ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease;
}
.header__logo:hover {
  opacity: 0.7;
}

.header__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.header__title {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.header__nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.header__link:hover {
  color: var(--primary);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.3s ease, background 0.3s ease;
}
.theme-toggle:hover {
  color: var(--primary);
  background: rgba(0, 209, 255, 0.08);
}
.theme-toggle__icon {
  width: 18px;
  height: 18px;
}
/* Theme based icon visibility */
:root[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
:root[data-theme="light"] .theme-toggle__icon--sun { display: none; }
:root[data-theme="light"] .theme-toggle__icon--moon { display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: var(--section-y) 24px;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero__text {
  flex: 1;
  min-width: 0;
}

.hero__heading {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__accent {
  color: var(--primary);
  position: relative;
}
.hero__accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.6;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__badge-link {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.hero__badge-link:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.hero__badge {
  height: 60px;
  width: auto;
}

/* Mockup visual */
.hero__visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hero__mockup-wrapper {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero__mockup {
  width: 320px;
  max-width: 100%;
  border-radius: var(--radius);
  filter: drop-shadow(var(--mockup-shadow));
}

/* Floating decorative dots */
.hero__dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__dot--1 {
  width: 16px;
  height: 16px;
  background: var(--primary);
  top: -20px;
  right: -10px;
  animation: float-dot 4s ease-in-out infinite;
  opacity: 0.7;
}

.hero__dot--2 {
  width: 10px;
  height: 10px;
  background: var(--accent);
  bottom: 40px;
  left: -20px;
  animation: float-dot 5s ease-in-out infinite 0.5s;
  opacity: 0.6;
}

.hero__dot--3 {
  width: 8px;
  height: 8px;
  background: var(--primary);
  top: 50%;
  right: -30px;
  animation: float-dot 3.5s ease-in-out infinite 1s;
  opacity: 0.4;
}

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

@keyframes float-dot {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, -8px); }
}

/* ---------- Features ---------- */
.features {
  padding: var(--section-y) 24px;
  background: var(--card-bg);
}

.features__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.features__heading {
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}

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

.card__icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--icon-wrap-bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card__icon {
  width: 36px;
  height: 36px;
  color: var(--text);
}

.card__title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card__desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ---------- Bottom CTA ---------- */
.bottom-cta {
  padding: var(--section-y) 24px;
  background: linear-gradient(135deg, #00D1FF, #0090CC);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative background pattern */
.bottom-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,214,0,0.12) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.bottom-cta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.bottom-cta__heading {
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.bottom-cta__sub {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 36px;
}

.bottom-cta__badge-link {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 8px 12px;
  backdrop-filter: blur(8px);
}
.bottom-cta__badge-link:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255,255,255,0.25);
}

.bottom-cta__badge {
  height: 64px;
  width: auto;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 24px 36px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--text-sub);
  transition: color 0.3s ease;
}
.footer__link:hover {
  color: var(--primary);
}

.footer__sep {
  color: var(--text-sub);
  opacity: 0.4;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.footer__disclaimer {
  font-size: 0.7rem;
  color: var(--text-sub);
  opacity: 0.6;
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 900px) {
  :root {
    --section-y: 80px;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .features__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --section-y: 64px;
  }

  .header__inner {
    height: 56px;
    padding: 0 16px;
  }

  .header__nav {
    gap: 14px;
  }

  .header__link {
    font-size: 0.75rem;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero__heading {
    font-size: 1.75rem;
  }

  .hero__sub {
    font-size: 0.95rem;
  }

  .hero__mockup {
    width: 260px;
  }

  .hero__badge {
    height: 48px;
  }

  .features {
    padding-left: 16px;
    padding-right: 16px;
  }

  .card {
    padding: 28px 24px;
  }

  .bottom-cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bottom-cta__badge {
    height: 52px;
  }

  .footer {
    padding: 36px 16px 28px;
  }
}
