/* ============================================
   Components
   ============================================ */

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: #000000;
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.header__logo:hover {
  color: var(--text-primary);
}

.header__logo-img {
  height: 28px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Nav Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 0;
  cursor: pointer;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav__dropdown-toggle:hover,
.nav__dropdown-toggle.active {
  color: var(--text-primary);
}

.nav__dropdown-toggle:hover::after,
.nav__dropdown-toggle.active::after {
  width: 100%;
}

.nav__dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.nav__dropdown:hover .nav__dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #12121a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  padding: var(--space-xs) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav__dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav__dropdown-item:hover {
  color: var(--text-primary);
  background: rgba(255, 80, 53, 0.06);
}

.nav__dropdown-item span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-top: 2px;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--text-muted);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
  padding: 4px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav__lang:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow-cyan);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 80, 53, 0.3);
  color: var(--bg-primary);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--accent-cyan);
  padding: 8px 16px;
}

.btn--ghost:hover {
  background: rgba(255, 80, 53, 0.1);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

.btn--sm {
  padding: 8px 20px;
  font-size: var(--fs-small);
}

.btn__icon {
  width: 18px;
  height: 18px;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-md);
  padding: 1px;
  background: var(--gradient-card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

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

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

.card--glass {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 80, 53, 0.1);
  color: var(--accent-cyan);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.card__icon--purple {
  background: rgba(124, 92, 255, 0.1);
  color: var(--accent-purple);
}

.card__icon--green {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
}

.card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
}

.card__text {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-cyan);
  background: rgba(255, 80, 53, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--accent-cyan);
  background: rgba(255, 80, 53, 0.08);
  border: 1px solid rgba(255, 80, 53, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: var(--space-lg);
}

.hero__label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: var(--fs-hero);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-dim);
  font-size: var(--fs-xs);
  animation: bounce 2s infinite;
}

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

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

@keyframes checkDraw {
  from {
    stroke-dashoffset: 40;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Contact success screen */
.contact-success .check-animate {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkDraw 0.6s ease 0.3s forwards;
}

/* --- Step/Process --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid rgba(255, 80, 53, 0.3);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  position: relative;
  z-index: 1;
}

.step__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
}

.step__text {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

/* --- Product Card --- */
.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

.product-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: var(--space-md);
  width: fit-content;
}

.product-card__badge--kintai {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.product-card__badge--shift {
  background: rgba(124, 92, 255, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(124, 92, 255, 0.2);
}

.product-card__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

.product-card__desc {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.product-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.product-card__feature {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
}

/* --- Blog Card --- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.blog-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.blog-card__body {
  padding: var(--space-md);
}

.blog-card__category {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.blog-card__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__title a {
  color: var(--text-primary);
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--accent-cyan);
}

.blog-card__date {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* --- Article Content --- */
.article-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
}

.article-content h2 {
  font-size: var(--fs-h2);
  color: var(--text-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content h3 {
  font-size: var(--fs-h3);
  color: var(--text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article-content h4 {
  font-size: var(--fs-h4);
  color: var(--text-primary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.9;
}

.article-content ul,
.article-content ol {
  color: var(--text-secondary);
  margin: var(--space-md) 0;
  padding-left: var(--space-lg);
}

.article-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-content li strong {
  color: var(--accent-cyan);
}

.article-content a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.article-content a:hover {
  color: var(--accent-purple);
}

.article-content blockquote {
  border-left: 3px solid var(--accent-cyan);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: rgba(255, 80, 53, 0.05);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.article-content pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-sm);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  overflow-x: auto;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
  margin: var(--space-lg) 0;
}

/* --- Footer --- */
.footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-3xl) 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand-desc {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-top: var(--space-md);
  max-width: 300px;
}

.footer__heading {
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer__link {
  display: block;
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

.footer__legal a {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.footer__legal a:hover {
  color: var(--accent-cyan);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 80, 53, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.cta-section__text {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

/* --- Form --- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.form-label .required {
  color: var(--accent-orange);
  margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(255, 80, 53, 0.1);
}

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

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--text-muted);
  padding: var(--space-md) 0;
}

.breadcrumb__separator {
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-cyan);
}

/* --- Page Hero (sub-pages) --- */
.page-hero {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: var(--gradient-hero);
  position: relative;
}

.page-hero__title {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-sm);
}

.page-hero__subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
}

/* --- Pricing Table --- */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
}

.pricing-card--featured {
  border-color: rgba(255, 80, 53, 0.3);
  position: relative;
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--border-radius-lg);
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card__name {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
}

.pricing-card__price {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.pricing-card__price span {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card__desc {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--space-lg);
}

.pricing-card__features {
  text-align: left;
  margin-bottom: var(--space-lg);
}

.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.pricing-card__feature::before {
  content: '\2713';
  color: var(--accent-green);
  font-weight: 700;
}

/* --- Feature List --- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
}

.feature-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 80, 53, 0.1);
  color: var(--accent-cyan);
  font-size: 1.25rem;
}

.feature-item__title {
  font-size: var(--fs-body);
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-item__text {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.stat__number {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* --- Badge / Tag --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.badge--cyan {
  background: rgba(255, 80, 53, 0.1);
  color: var(--accent-cyan);
}

.badge--purple {
  background: rgba(124, 92, 255, 0.1);
  color: var(--accent-purple);
}

.badge--green {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
}
