@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #333 #0a0a0a;
}

:root {
  --bg-dark: #0a0a0a;
  --bg-card: rgba(18, 18, 18, 0.6);
  --bg-card-hover: rgba(26, 26, 26, 0.9);
  --primary: #ffffff;
  --primary-glow: rgba(255, 255, 255, 0.05);
  --secondary: #a1a1a6;      /* Slate Gray */
  --accent: #5e6ad2;         /* Sophisticated Slate Blue */
  --accent-glow: rgba(94, 106, 210, 0.15);
  --text-main: #f5f5f7;
  --text-muted: #86868b;
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --border-glow: rgba(255, 255, 255, 0.06);
  --border-glow-hover: rgba(94, 106, 210, 0.3);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Canvas Background */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Dynamic Ambient Glows (Subtle, Premium) */
.ambient-glow {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(94, 106, 210, 0.03) 0%, transparent 70%);
  position: absolute;
  top: 10%;
  right: -10%;
  pointer-events: none;
  z-index: -2;
}

.ambient-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.015) 0%, transparent 70%);
  position: absolute;
  top: 60%;
  left: -10%;
  pointer-events: none;
  z-index: -2;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1a6 50%, #5e6ad2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout Elements --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.1rem 0;
}

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

.logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--primary);
  letter-spacing: -0.03em;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  z-index: 10;
}

.hero-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 1.8rem;
  color: var(--text-main);
}

.hero-description {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--primary);
  color: #000;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: #e5e5e7;
  border-color: #e5e5e7;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* --- Section Heading --- */
.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-tag {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-desc {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0.75rem auto 0;
  font-size: 0.95rem;
}

/* --- Timeline Section --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
  top: 0;
  bottom: 0;
  left: 2rem;
}

.timeline-item {
  padding: 2.5rem 0;
  position: relative;
  width: 100%;
  padding-left: 4.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  left: 2rem;
  background-color: var(--bg-dark);
  border: 2px solid var(--accent);
  border-radius: 50%;
  top: 3.1rem;
  z-index: 10;
  transform: translateX(-50%);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  background-color: var(--accent);
  transform: translateX(-50%) scale(1.3);
}

.timeline-date {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* Minimalist Bento Timeline Card */
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 2.2rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow-hover);
}

.timeline-img-wrapper {
  border-radius: 8px;
  overflow: hidden;
  height: 170px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: grayscale(1) contrast(1.15);
  transition: var(--transition-smooth);
}

.timeline-card:hover .timeline-img {
  opacity: 0.85;
  filter: grayscale(0.25) contrast(1.05);
}

.timeline-card-content {
  display: flex;
  flex-direction: column;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

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

/* --- Industry (Fabric & MES) Section --- */
.industry-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.industry-content {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.industry-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.industry-title {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

.industry-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.industry-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.highlight-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.highlight-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.highlight-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.highlight-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.highlight-item p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Industrial Dashboard Simulator (Clean Slate Gray Interface) */
.dashboard-card {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 1.5rem;
  font-family: 'Inter', monospace;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.97);
  transition: var(--transition-smooth);
}

.dashboard-card.visible {
  opacity: 1;
  transform: scale(1);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}

.dash-title {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
}

.dash-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.dash-time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.metric-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.9rem;
  border-radius: 6px;
  text-align: center;
}

.metric-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.metric-value {
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 600;
}

.dash-console {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 0.85rem;
  height: 120px;
  overflow-y: hidden;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: monospace;
}

.console-line {
  display: flex;
  gap: 0.5rem;
}

.console-line .time {
  color: #555;
  flex-shrink: 0;
}

.console-line .success {
  color: var(--accent);
}

.console-line .info {
  color: #777;
}

/* --- OAKAMA Channel Section --- */
.oakama-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

.oakama-card-wrapper {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.oakama-card-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

.oakama-youtube-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.yt-profile {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.yt-avatar-glow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-main);
}

.yt-info h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.1rem;
}

.yt-handle {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  display: block;
}

.yt-stats {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.yt-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 500;
  margin-top: 0.4rem;
}

.yt-videos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.yt-video-card {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 0.6rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.yt-video-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.yt-thumb-wrapper {
  position: relative;
  width: 100px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}

.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.yt-duration {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.6rem;
  padding: 1px 3px;
  border-radius: 1px;
}

.yt-video-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yt-video-title {
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-video-meta {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.oakama-content {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.oakama-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.rule-box {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1.8rem;
  margin-top: 1.8rem;
}

.rule-title {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rule-title i {
  color: var(--accent);
}

.rule-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Philosophy / AI Section --- */
.philosophy-section {
  text-align: center;
}

.philosophy-container {
  max-width: 750px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.philosophy-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.philosophy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 4rem 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.philosophy-quote {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 2.2rem;
  color: var(--text-main);
}

.philosophy-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

/* --- Contact & Footer --- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5rem 0 3rem;
  background-color: #070707;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.footer-brand h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 1.8rem;
}

/* --- Animations --- */
@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  section {
    padding: 5rem 0;
  }
  .industry-grid, .oakama-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .industry-content, .oakama-content {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .timeline::after {
    left: 1.5rem;
  }
  
  .timeline-item {
    padding-left: 3rem;
  }
  
  .timeline-dot {
    left: 1.5rem;
  }
  
  .timeline-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.8rem;
  }
  
  .timeline-img-wrapper {
    height: 180px;
    order: -1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-socials {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .industry-highlights {
    grid-template-columns: 1fr;
  }
  .timeline-card {
    padding: 1.4rem;
  }
}
