/* RDV - Minimal White Theme */

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

:root {
  --bg-white: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --border-light: #e5e5e5;
  --header-height: 60px;
  --bg-light: #f5f5f5;
  --header-opacity: 0;
}

[data-theme="dark"] {
  --bg-white: #1a1a1a;
  --text-primary: #e5e5e5;
  --text-secondary: #999999;
  --border-light: #333333;
  --bg-light: #2a2a2a;
  --header-bg: #1a1a1a;
  --header-border: #333333;
}

[data-theme="light"],
:root {
  --header-bg: #ffffff;
  --header-border: #e5e5e5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  background: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background-color 0.05s ease, border-color 0.05s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 18pt;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.header-actions.hidden {
  opacity: 0;
  pointer-events: none;
}

.theme-switch {
  background: none;
  border: none;
  font-size: 0;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
}

.theme-switch:hover {
  background: var(--bg-light);
}

.media-switch {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  z-index: 2000;
  position: relative;
}

.media-switch:hover {
  background: var(--bg-light);
}

.media-switch i {
  font-size: 18px;
}

.media-switch:hover {
  background: var(--bg-light);
}

.media-switch .media-icon {
  font-size: 18px;
  line-height: 1;
  display: block;
}

.theme-switch i {
  font-size: 18px;
}

.lang-switch {
  background: none;
  border: none;
  font-size: 0;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
}

.lang-switch:hover {
  background: var(--bg-light);
}

.lang-switch i {
  font-size: 18px;
  transition: color 0.2s, opacity 0.2s;
}

.lang-switch.active i {
  color: var(--text-primary);
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1001;
  min-width: 80px;
  overflow: hidden;
}

.lang-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-option:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

.lang-option.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* Main Content */
main {
  /* padding-top: var(--header-height); */
}

/* Base Section Styles */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-light);
}

.section-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-primary);
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

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

/* Two-Layer Grid */
.layer-2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.layer-2-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
}

.layer-2-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.layer-2-card i {
  font-size: 36px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: block;
}

.layer-2-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.layer-2-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Feature Sub-items */
.feature-card ul {
  list-style: none;
  margin-top: 16px;
}

.feature-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-card li i {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Goal Section */
.goal-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.goal-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* News Section */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.news-item {
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.news-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-item-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.news-item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.news-item-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.news-item-title a:hover {
  color: var(--text-secondary);
}

.news-item-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.news-more {
  text-align: center;
  margin-top: 32px;
}

.news-more-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--text-secondary);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.news-more-link:hover {
  color: var(--text-secondary);
  border-color: var(--text-primary);
}

/* Blog List Page */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.blog-item {
  padding: 32px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.blog-item-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.blog-item-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.blog-item-title a:hover {
  color: var(--text-secondary);
}

.blog-item-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-read-more {
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.blog-read-more:hover {
  color: var(--text-secondary);
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.hero-content {
  max-width: calc(100% - 48px);
  padding: 0 20px;
  white-space: nowrap;
  margin: auto;
  position: relative;
  z-index: 1;
}

.hero.has-bg .hero-content {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.hero.has-bg .hero-title {
  font-size: clamp(24px, 5vw, 36px);
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.hero.has-bg .hero-fixed-container {
  position: relative;
  width: 100pt;
  flex: 1 1 0;
  height: 1em;
}

.hero.has-bg .hero-carousel-container {
  position: relative;
  width: 100pt;
  flex: 1 1 0;
  height: 1em;
}

.hero.has-bg .hero-fixed {
  position: absolute;
  right: 0;
}

.hero.has-bg .word-carousel {
  position: absolute;
  left: 0;
}

.hero.has-bg .word-carousel .word {
  position: absolute;
  left: 0;
}

.hero.has-bg .hero-carousel-container {
  text-align: left;
}

.hero.has-bg .word-carousel {
  min-width: 100px;
}

.hero.has-bg .word-carousel .word {
  width: 100px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  z-index: -1;
}

[data-theme="dark"] .hero-bg-light {
  filter: invert(1);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  z-index: -1;
}

.hero-bg.active {
  opacity: 1;
}

.hero-video.active {
  opacity: 1;
}

.hero-title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  width: 100%;
}

.hero-fixed-container {
  flex: 1 1 0;
  width: 100pt;
  text-align: right;
  position: relative;
  height: 1em;
}

.hero-fixed {
  position: absolute;
  right: 0;
}

.hero-carousel-container {
  flex: 1 1 0;
  width: 100pt;
  text-align: left;
  position: relative;
  height: 1em;
}

.word-carousel {
  position: absolute;
  left: 0;
}

.word-carousel .word {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  text-align: left;
  transition: all 0.8s ease;
}

.word-carousel .word.active {
  transform: translateY(0);
  opacity: 1;
}

.word-carousel .word.inactive {
  transform: translateY(-100%);
  opacity: 0;
}

.word-carousel .word.slide-out {
  transform: translateY(100%);
  opacity: 0;
}

.word-carousel .word.slide-in {
  transform: translateY(0);
  opacity: 1;
}

/* Hide old CTA - replaced by arrow */
/* 
.hero-cta {
  display: inline-block;
  padding: 16px 48px;
  font-size: 16px;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.hero-cta:hover {
  background: var(--text-primary);
  color: var(--bg-white);
}
*/

/* Dynamic Arrow */

/* Dynamic Arrow */
.hero-arrow {
  display: inline-block;
  cursor: pointer;
  padding: 16px;
  margin-top: 24px;
}

.hero.has-bg .hero-arrow {
  margin-top: 0;
}

.hero-arrow i {
  font-size: 24px;
  color: var(--text-secondary);
  transition: color 0.2s;
  animation: arrow-bounce 2s infinite;
}

.hero-arrow:hover i {
  color: var(--text-primary);
}

@keyframes arrow-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

.hero-cta {
  display: inline-block;
  padding: 16px 48px;
  font-size: 16px;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.hero-cta:hover {
  background: var(--text-primary);
  color: var(--bg-white);
}

/* Product Intro */
.product-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 0;
  text-align: center;
}

.product-intro i {
  font-size: 48px;
  color: var(--text-secondary);
}

.product-tagline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-names {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.product-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-contact-item i {
  font-size: 16px;
  color: var(--text-secondary);
  width: 20px;
  text-align: center;
}

.footer-contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: var(--text-primary);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  font-size: 20px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--text-primary);
}

.footer-social .social-x {
  display: flex;
  align-items: center;
}

.footer-social .social-x svg {
  fill: var(--text-secondary);
  transition: fill 0.2s ease;
}

.footer-social .social-x:hover svg {
  fill: var(--text-primary);
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-secondary);
  width: 100%;
  text-align: center;
}

.contact-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.contact-items {
  display: flex;
  gap: 64px;
  align-items: center;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  min-width: 160px;
}

.contact-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text-primary);
}

.contact-x-icon {
  fill: var(--text-primary);
}

@media (max-width: 767px) {
  .contact-items {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .hero {
    min-height: 100vh;
  }
  
  .hero-content {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
    left: 0;
    right: 0;
    transform: none;
  }
  
  .hero-title {
    font-size: clamp(20px, 8vw, 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  .hero-fixed-container {
    width: 100%;
    position: relative;
    flex: 0 0 auto;
    height: 1em;
  }
  
  .hero-carousel-container {
    width: 100%;
    position: relative;
    flex: 0 0 auto;
    height: 1em;
  }
  
  .hero-fixed {
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  
  .word-carousel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .word-carousel .word {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    text-align: center;
    transition: all 0.8s ease;
  }
  
  .word-carousel .word.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  
  .word-carousel .word.inactive {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  
  .word-carousel .word.slide-out {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
  }
  
  .word-carousel .word.slide-in {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* Mobile + has-bg (image/video) mode */
@media (max-width: 767px) {
  .hero.has-bg .hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  
  .hero.has-bg .hero-fixed-container {
    position: relative;
    width: 100%;
    text-align: center;
    height: 2em;
    flex: 0 0 auto;
  }
  
  .hero.has-bg .hero-fixed {
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  
  .hero.has-bg .hero-carousel-container {
    display: block;
    width: 100%;
    text-align: center;
    height: 2em;
    flex: 0 0 auto;
  }
  
  .hero.has-bg .word-carousel {
    display: inline;
    position: static;
  }
  
  .hero.has-bg .word-carousel .word {
    position: static;
    display: inline;
  }
  
  .hero.has-bg .word-carousel .word.active {
    transform: none;
  }
  
  .hero.has-bg .word-carousel .word.inactive {
    transform: none;
    display: none;
  }
  
  .hero.has-bg .word-carousel .word.slide-out {
    transform: none;
    display: none;
  }
}

/* Future: Hero Video/Slide Support */
/*
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
*/