/* --- Variables & Reset --- */
:root {
  --primary: #0097a7;
  --primary-dark: #007b8a;
  --primary-light: #e0f7fa;
  --primary-glow: rgba(0, 151, 167, 0.3);
  --secondary: #1a1a2e;
  --secondary-light: #2e2e4a;
  --bg-light: #f0f4f8;
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
  --white: #ffffff;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(0, 151, 167, 0.15);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --container-width: 1200px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--secondary);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.3;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

p {
  margin-bottom: 1.2rem;
  color: var(--secondary);
}

ul {
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

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

/* --- Layout --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 5rem 0;
  position: relative;
}

.bg-light {
  background: var(--bg-gradient);
  padding: 5rem 0;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

footer {
  margin-top: 4rem;
}

.section-header {
  text-align: left;
  margin-bottom: 2rem;
}

/* --- Header --- */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}

header.header-hidden {
  transform: translateY(-100%);
}

header.header-visible {
  transform: translateY(0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-spacer {
  height: 75px;
}

.nav-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

.logo span {
  color: var(--primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0;
  padding-left: 0;
  white-space: nowrap;
}

nav a {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 1rem;
  margin-right: 1rem;
}

.lang-switcher a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0.5;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lang-switcher a:hover,
.lang-switcher a.active {
  opacity: 1;
  transform: scale(1.1);
}

.lang-switcher a.active {
  box-shadow: 0 0 0 2px var(--primary);
}

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

/* Mobile Language Switcher */
.lang-switcher-mobile {
  display: none;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  position: fixed;
  top: auto;
  bottom: 0;
  right: -280px;
  width: 280px;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: right var(--transition);
  box-sizing: border-box;
}

.lang-switcher-mobile.active {
  right: 0;
}

.lang-switcher-mobile a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 26px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.5;
  transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.lang-switcher-mobile a:hover,
.lang-switcher-mobile a.active {
  opacity: 1;
  transform: scale(1.1);
}

.lang-switcher-mobile a.active {
  box-shadow: 0 0 0 2px var(--primary);
}

.lang-switcher-mobile svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --- Hero --- */
.hero {
  background-color: #1a1a2e;
  color: var(--white);
  padding: 8rem 0;
  text-align: left;
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: url("/announcement/assets/ftomoto_banner.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  font-weight: 900;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 700px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 400;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-block;
  background: rgba(231, 76, 60, 0.9);
  color: white !important;
  padding: 0.4rem 1.5rem;
  border-radius: 30px;
  font-size: 0.85rem !important;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem !important;
  animation: fadeInUp 0.6s ease-out;
  backdrop-filter: blur(10px);
  text-shadow: none !important;
}

/* --- Grids --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

/* --- Cards --- */
.card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

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

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Content Card */
.content-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Section Subtitle */
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 850px;
  margin: 1rem 0 0;
}

/* --- Statement Card --- */
.statement-card {
  max-width: 850px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.statement-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: white;
  padding: 2rem 2.5rem;
  text-align: left;
}

.statement-header svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.statement-header h3 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 0;
  font-weight: 600;
  line-height: 1.5;
}

.statement-body {
  padding: 2.5rem;
}

.statement-body .greeting {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.statement-body p {
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.statement-signature {
  padding: 1.5rem 2.5rem 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.statement-signature .closing {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.statement-signature .names {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    var(--primary) 0%,
    var(--primary) 20%,
    #e74c3c 35%,
    #e74c3c 50%,
    #7f8c8d 60%,
    #7f8c8d 75%,
    var(--primary) 90%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 100%;
  display: flex;
  margin-bottom: 3rem;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
  opacity: 1;
}

.timeline-item.tl-left {
  justify-content: flex-start;
  transform: translateX(-40px);
}

.timeline-item.tl-left.visible {
  transform: translateX(0);
}

.timeline-item.tl-right {
  justify-content: flex-end;
  transform: translateX(40px);
}

.timeline-item.tl-right.visible {
  transform: translateX(0);
}

.timeline-card {
  width: calc(50% - 40px);
  background: var(--white);
  padding: 1.75rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.timeline-item.positive .timeline-card::before {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.timeline-item.warning .timeline-card::before {
  background: linear-gradient(90deg, #f39c12, #f8c471);
}

.timeline-item.negative .timeline-card::before,
.timeline-item.critical .timeline-card::before {
  background: linear-gradient(90deg, #e74c3c, #f1948a);
}

.timeline-item.neutral .timeline-card::before {
  background: linear-gradient(90deg, #7f8c8d, #bdc3c7);
}

.timeline-card::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.tl-left .timeline-card::after {
  right: -20px;
  border-left-color: var(--white);
}

.tl-right .timeline-card::after {
  left: -20px;
  border-right-color: var(--white);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 1.25rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary), 0 0 15px rgba(0, 151, 167, 0.3);
  z-index: 2;
  transition: box-shadow 0.3s ease;
}

.timeline-item.warning::after {
  background: #f39c12;
  box-shadow: 0 0 0 3px #f39c12, 0 0 15px rgba(243, 156, 18, 0.3);
}

.timeline-item.negative::after {
  background: #e74c3c;
  box-shadow: 0 0 0 3px #e74c3c, 0 0 15px rgba(231, 76, 60, 0.3);
}

.timeline-item.critical::after {
  background: #e74c3c;
  box-shadow: 0 0 0 3px #e74c3c, 0 0 15px rgba(231, 76, 60, 0.3);
  animation: pulse-critical 2s infinite;
}

.timeline-item.neutral::after {
  background: #7f8c8d;
  box-shadow: 0 0 0 3px #7f8c8d, 0 0 15px rgba(127, 140, 141, 0.3);
}

@keyframes pulse-critical {
  0%, 100% { box-shadow: 0 0 0 3px #e74c3c, 0 0 15px rgba(231, 76, 60, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(231, 76, 60, 0.4), 0 0 30px rgba(231, 76, 60, 0.5); }
}

.timeline-date {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.timeline-item.positive .timeline-date {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.timeline-item.warning .timeline-date {
  background: #fef9e7;
  color: #b7950b;
}

.timeline-item.negative .timeline-date,
.timeline-item.critical .timeline-date {
  background: #fdedec;
  color: #c0392b;
}

.timeline-item.neutral .timeline-date {
  background: #eaecee;
  color: #5d6d7e;
}

.timeline-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-weight: 700;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.timeline-card ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* --- Legal Sections --- */
.legal-section {
  max-width: 850px;
}

.legal-section h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.legal-section h3:first-child {
  margin-top: 0;
}

.legal-section p {
  line-height: 1.8;
  color: var(--text-muted);
}

.legal-section ul {
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- Disclaimer Notice --- */
.disclaimer-notice {
  max-width: 850px;
  margin: 2rem auto 0;
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-top: 4px solid var(--primary);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.disclaimer-notice strong {
  color: var(--secondary);
}

/* --- Footer --- */
footer {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
  margin-top: 0;
  font-size: 0.95rem;
}

footer h4 {
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

footer ul {
  list-style: none;
  padding-left: 0;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--white);
  transition: all var(--transition-fast);
}

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

.contact-block {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-block strong {
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  opacity: 0.6;
  font-size: 0.85rem;
}

.footer-links {
  margin-top: 1.5rem;
}

.footer-links a {
  margin-right: 1.5rem;
  font-size: 0.9rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 1100px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  section {
    padding: 4rem 0;
  }

  .bg-light {
    padding: 4rem 0;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 1100px) {
  .menu-toggle {
    display: flex;
    margin-left: 0.5rem;
    order: 3;
  }

  .lang-switcher {
    position: static;
    transform: none;
    margin-left: auto;
    margin-right: 0;
    order: 2;
  }

  .logo {
    order: 1;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    padding: 80px 24px 24px;
    transition: right var(--transition);
    z-index: 1000;
    flex: none;
    display: block;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    white-space: normal;
  }

  nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    white-space: normal;
  }

  .hero {
    padding: 5rem 0;
    min-height: 300px;
  }

  .hero-bg {
    background-position: center center;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .card,
  .content-card {
    padding: 1.75rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section-header {
    text-align: left;
    margin-left: 1.75rem;
  }

  .section-header h2::after {
    left: 0;
    transform: none;
  }

  .contact-block {
    text-align: left;
  }

  footer {
    margin-top: 3rem;
  }

  .header-spacer {
    height: 70px;
  }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item.tl-left,
  .timeline-item.tl-right {
    justify-content: flex-start;
    transform: translateY(30px);
  }

  .timeline-item.visible,
  .timeline-item.tl-left.visible,
  .timeline-item.tl-right.visible {
    transform: translateY(0);
  }

  .timeline-card {
    width: calc(100% - 55px);
    margin-left: 45px;
  }

  .timeline-item::after {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-card::after {
    left: -20px !important;
    right: auto !important;
    border-right-color: var(--white) !important;
    border-left-color: transparent !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .bg-light {
    padding: 3rem 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  footer {
    margin-top: 3rem;
  }

  .header-spacer {
    height: 65px;
  }

  .statement-body {
    padding: 1.5rem;
  }

  .statement-header {
    padding: 1.5rem;
  }

  .statement-signature {
    padding: 1.5rem;
  }

  .timeline-card {
    padding: 1.25rem 1.5rem;
  }
}

/* Very small screens */
@media (max-width: 410px) {
  .lang-switcher {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .lang-switcher-mobile {
    display: flex;
  }

  .lang-switcher-mobile.active {
    display: flex;
  }
}

/* Overlay for mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

section {
  opacity: 1;
}
