/* NutGuard – Müşteri sunum sitesi */
/* Modern, soft design with light/dark mode support */

:root {
  /* Color Palette - Based on NutGuard Logo */
  --primary: #1B4332;
  --primary-light: #2D5A4A;
  --primary-dark: #122C21;
  --accent: #D4A017;
  --accent-light: #E5B82A;
  --accent-dark: #B8860B;
  
  /* Light Mode (Default) */
  --bg: #FAFBFC;
  --bg-secondary: #F5F6F8;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --text: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #6b7280;
  --border: #E5E7EB;
  --border-light: #F0F1F3;
  --shadow: rgba(0, 0, 0, 0.04);
  --shadow-hover: rgba(0, 0, 0, 0.08);
  --header-bg: rgba(250, 251, 252, 0.9);
  
  /* Shared */
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.2s ease;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg: #0F1419;
  --bg-secondary: #161B22;
  --bg-card: #1C2128;
  --bg-elevated: #242B35;
  --text: #F0F6FC;
  --text-secondary: #C9D1D9;
  --text-muted: #8B949E;
  --border: #30363D;
  --border-light: #21262D;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.5);
  --header-bg: rgba(15, 20, 25, 0.9);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), border-color var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}

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

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

.nav a:hover::after {
  width: 100%;
}

.nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.lang-switch a {
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

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

.lang-switch a.active::after {
  display: none;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  margin-left: 1rem;
}

.theme-toggle:hover {
  background: var(--bg-elevated);
  border-color: var(--primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.theme-toggle:hover svg {
  color: var(--primary);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 10px 30px var(--shadow);
  }
  
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav a::after {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .theme-toggle {
    margin-left: 0.5rem;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 6rem 0 7rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(27, 67, 50, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(212, 160, 23, 0.06), transparent);
  pointer-events: none;
}

[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(27, 67, 50, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(212, 160, 23, 0.12), transparent);
}

.hero-inner {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(27, 67, 50, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .hero-badge {
  background: rgba(27, 67, 50, 0.25);
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  max-width: 20ch;
  color: var(--text);
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 44rem;
  margin: 0 0 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.25);
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.section-lead {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin: 0 0 3rem;
  max-width: 600px;
}

/* Features */
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  box-shadow: 0 2px 8px var(--shadow);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px var(--shadow-hover);
  transform: translateY(-4px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.1), rgba(212, 160, 23, 0.1));
  border-radius: 12px;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .feature-icon {
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.25), rgba(212, 160, 23, 0.2));
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

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

/* How it works */
.how {
  background: var(--bg-secondary);
  transition: background var(--transition);
}

.steps {
  max-width: 40rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps li strong {
  color: var(--text);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

/* Technical */
.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.tech-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  box-shadow: 0 2px 8px var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tech-list li:hover {
  border-color: var(--primary);
}

.tech-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(27, 67, 50, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

[data-theme="dark"] .tech-list li::before {
  background: rgba(27, 67, 50, 0.25);
  color: var(--accent);
}

.tech-list li strong {
  color: var(--primary);
  font-weight: 600;
}

/* CTA */
.cta {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
  transition: background var(--transition);
}

.cta .section-lead {
  margin-bottom: 2rem;
}

.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all var(--transition);
}

.contact-block p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-block p::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
}

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

.contact-block strong {
  color: var(--text);
}

.contact-email {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.cta-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
  transition: border-color var(--transition);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Selection */
::selection {
  background: rgba(27, 67, 50, 0.2);
  color: var(--text);
}

/* Smooth transitions for theme switch */
* {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

/* Disable transitions on page load */
.no-transition * {
  transition: none !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-inner > * {
  animation: fadeIn 0.6s ease forwards;
}

.hero-badge { animation-delay: 0s; }
.hero-title { animation-delay: 0.1s; }
.hero-lead { animation-delay: 0.2s; }
.hero-cta { animation-delay: 0.3s; }
