/* Ozark Digital - Apple-Grade Enterprise Design System
 * Clean, minimalist, expensive aesthetic inspired by apple.com
 */

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

:root {
  --apple-black: #000000;
  --apple-dark: #121214;
  --apple-card-dark: #161617;
  --apple-card-border: rgba(255, 255, 255, 0.08);
  --apple-card-border-light: rgba(0, 0, 0, 0.08);
  --apple-gray-bg: #f5f5f7;
  --apple-gray-hover: #e8e8ed;
  
  --apple-text-dark: #1d1d1f;
  --apple-text-light: #f5f5f7;
  --apple-text-muted: #86868b;
  --apple-text-subtle: #a1a1a6;
  
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-link-blue: #2997ff;
  
  --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-apple);
  color: var(--apple-text-dark);
  background-color: var(--apple-black);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--apple-black);
  color: var(--apple-text-light);
}

/* Apple Navigation Bar */
.apple-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.apple-nav-link {
  font-size: 12px;
  letter-spacing: -0.01em;
  color: #d6d6d6;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 400;
  opacity: 0.85;
}

.apple-nav-link:hover,
.apple-nav-link.active {
  color: #ffffff;
  opacity: 1;
}

/* Apple Sub-Header / Legal Header */
.apple-subbar {
  background: #161617;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--apple-text-muted);
}

/* Apple Typography Scale */
.apple-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--apple-text-muted);
}

.apple-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f5f5f7;
}

.apple-subhead {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--apple-text-muted);
}

/* Apple Button Styles */
.apple-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--apple-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  padding: 11px 21px;
  border-radius: 980px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  border: none;
  cursor: pointer;
  min-height: 40px;
}

.apple-btn-primary:hover {
  background-color: var(--apple-blue-hover);
  transform: scale(1.02);
}

.apple-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--apple-link-blue);
  font-size: 14px;
  font-weight: 400;
  padding: 11px 21px;
  border-radius: 980px;
  text-decoration: none;
  border: 1px solid rgba(41, 151, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  min-height: 40px;
}

.apple-btn-secondary:hover {
  background-color: rgba(41, 151, 255, 0.1);
  border-color: var(--apple-link-blue);
}

.apple-link-cta {
  color: var(--apple-link-blue);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.apple-link-cta:hover {
  text-decoration: underline;
  gap: 8px;
}

/* Apple Tiles (Bento Showcase) */
.apple-tile {
  background: var(--apple-card-dark);
  border: 1px solid var(--apple-card-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.apple-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.apple-tile-light {
  background: #ffffff;
  color: var(--apple-text-dark);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.apple-tile-light:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
}

/* Apple Pill Switcher for Language */
.apple-lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 980px;
  padding: 2px 4px;
  font-size: 11px;
}

.apple-lang-btn {
  padding: 3px 8px;
  border-radius: 980px;
  color: #a1a1a6;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.apple-lang-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}

/* Section transitions */
.section-white {
  background-color: #ffffff;
  color: var(--apple-text-dark);
}

.section-gray {
  background-color: var(--apple-gray-bg);
  color: var(--apple-text-dark);
}

.section-dark {
  background-color: var(--apple-black);
  color: var(--apple-text-light);
}

/* Minimalist Form Elements */
.apple-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #ffffff;
  font-family: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.apple-input:focus {
  outline: none;
  border-color: var(--apple-link-blue);
  background: rgba(255, 255, 255, 0.08);
}

.apple-input-light {
  width: 100%;
  background: #f5f5f7;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #1d1d1f;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.apple-input-light:focus {
  outline: none;
  border-color: var(--apple-blue);
  background: #ffffff;
}

/* Spec Matrix Table (Apple-Style) */
.apple-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.apple-spec-row-light {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Toast */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .apple-headline {
    font-size: 2.75rem;
  }
}
