/* Freyvind — Landing Page Styles */

:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --text-primary: #f0f4fc;
  --text-secondary: #94a3b8;
  --accent: #38bdf8;
  --accent-dim: #0c4a6e;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --wind-green: #22c55e;
  --wind-yellow: #eab308;
  --wind-red: #ef4444;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-decoration: none;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent);
}

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 60% 40%, var(--accent-glow) 0%, transparent 60%);
  animation: drift 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, 3%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero .etymology {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.6;
  font-style: italic;
  margin-bottom: 3rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: #7dd3fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ---- SECTIONS ---- */
section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

section h2 span {
  color: var(--accent);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 650px;
}

/* ---- PROBLEM ---- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.problem-card:hover {
  border-color: var(--accent-dim);
}

.problem-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* ---- HOW IT WORKS ---- */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---- WIND VISUALIZATION ---- */
.wind-demo {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}

.wind-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
  margin: 1.5rem 0;
  height: 40px;
  width: 100%;
}

.wind-segment {
  flex: 1;
  min-width: 0;
  border-radius: 4px;
  transition: height 0.3s, background 0.3s;
  animation: pulse 3s ease-in-out infinite;
}

.wind-segment:nth-child(odd) { animation-delay: 0.1s; }
.wind-segment:nth-child(3n) { animation-delay: 0.5s; }
.wind-segment:nth-child(7n) { animation-delay: 0.8s; }

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.wind-labels {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* ---- TEAM ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2rem;
  text-align: center;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--accent-dim);
  background: var(--bg-secondary);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.team-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* ---- TRIAL ---- */
.trial-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--accent-dim);
}

.trial-phase {
  position: relative;
  padding-bottom: 2.5rem;
}

.trial-phase::before {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
}

.trial-phase h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.trial-phase .timeline-date {
  color: var(--accent);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.trial-phase p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---- CONTACT ---- */
.contact-section {
  text-align: center;
  padding: 6rem 2rem 8rem;
}

.contact-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav {
    justify-content: space-between;
  }
  
  .hamburger {
    display: flex;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    padding: 1rem 2rem 1.5rem;
    gap: 0;
  }
  
  nav ul.open {
    display: flex;
  }
  
  nav ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  nav ul li:last-child {
    border-bottom: none;
  }
  
  nav ul a {
    font-size: 1rem;
  }
  
  section {
    padding: 4rem 1.5rem;
  }
  
  .problem-grid,
  .how-steps,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
}
