/* style.css - 4mac Official Website Design System */
:root {
  --bg-dark: #0B0B0C;
  --bg-surface: #141416;
  --bg-surface-hover: #1A1A1E;
  --text-primary: #ffffff;
  --text-secondary: #8B8B9B;
  --text-dim: #5E5E6E;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 159, 10, 0.4);
  --accent-orange: #FF9F0A;
  --accent-orange-glow: rgba(255, 159, 10, 0.15);
  
  --radius-lg: 24px;
  --radius-md: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.ambient-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 80vh;
  background: radial-gradient(circle, var(--accent-orange-glow) 0%, rgba(11, 11, 12, 0) 60%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Navbar */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: rgba(11, 11, 12, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

nav {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-primary);
}

.brand img {
  width: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

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

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

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px 0;
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(20, 20, 22, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lang-switcher:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
  display: block;
}

.lang-dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.lang-dropdown a.active {
  color: var(--accent-orange);
  background: var(--accent-orange-glow);
}

/* Hero Section */
header.container {
  text-align: center;
  padding-top: 220px;
  padding-bottom: 80px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-gradient {
  background: linear-gradient(90deg, #FFFFFF 0%, #8B8B9B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* Buttons */
.cta-group {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-dark);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #f1f1f1;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  color: var(--text-primary);
  background-color: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.tech-stack-tags {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 80px;
}

/* Dashboard Mockup */
.hero-dashboard-preview {
  margin-top: 80px;
  perspective: 1000px;
}

.glass-dashboard {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.dashboard-header {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.stat-mini-card {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 24px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.stat-mini-card b {
  display: block;
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-top: 8px;
  font-weight: 600;
}

/* Hero Bottom Stats */
.hero-stats-row {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  border-top: 1px solid var(--border-light);
  padding-top: 40px;
}

.hero-stat-item .val {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hero-stat-item .lbl {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Shared Sections */
.section {
  padding-top: 120px;
  padding-bottom: 80px;
}

.section-badge {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 60px;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
}

.feature-card {
  padding: 48px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.01);
}

.feat-num {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--text-dim);
  margin-bottom: 24px;
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

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

/* Performance Box */
.performance-section {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 80px;
  margin-bottom: 100px;
}

.tabs {
  display: flex;
  gap: 12px;
  margin-top: 60px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
}

.tab {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.table-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.table-subtitle {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.perf-table {
  width: 100%;
  border-collapse: collapse;
}

.perf-table th {
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 1px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.perf-table td {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: monospace;
  font-size: 0.9rem;
}

.perf-table .col-dim {
  color: var(--text-dim);
}

/* Quote Section */
.quote-section {
  padding: 80px 0;
  max-width: 900px;
  margin: 0 auto;
}

.quote-content {
  border-left: 2px solid var(--border-light);
  padding-left: 32px;
}

.quote-content p {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.quote-author {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
  max-width: 900px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--border-light);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.faq-question svg {
  color: var(--text-dim);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Get Started Dashboard Block */
.get-started-box {
  background-color: #0A0A0A; /* Deep solid dark */
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 80px;
  margin: 60px 0;
}

.method-cards-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.method-card {
  max-width: 500px;
  width: 100%;
  background: #111111;
  border: 1px solid #1c1c1c;
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.method-card h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.method-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.rec-badge {
  font-size: 0.75rem;
  background: #252528;
  color: #a1a1aa;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-download {
  background-color: #fff;
  color: #000;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: max-content;
}

.btn-download:hover {
  background-color: #ededed;
}

/* Terminal Component */
.terminal-block {
  background: #000;
  border: 1px solid #1c1c1c;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  margin-top: auto;
}

.terminal-block pre {
  font-family: inherit;
  font-size: 0.8rem;
  color: #a1a1a1;
  white-space: pre-wrap;
  line-height: 1.5;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #1c1c1c;
  color: #666;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Footer Alignment */
footer {
  padding: 60px 32px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 40px;
}

.footer-nav-grid {
  display: flex;
  justify-content: flex-end;
}

.footer-col {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

/* Download Modal UI */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: #0f0f11;
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  width: 90%;
  max-width: 520px;
  padding: 32px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.9);
  transform: translateY(0) scale(1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden .modal-content {
  transform: translateY(20px) scale(0.95);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.modal-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-area h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.modal-version-pill {
  background: rgba(255, 189, 46, 0.15);
  color: #FFBD2E;
  border: 1px solid rgba(255, 189, 46, 0.3);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: monospace;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.download-primary-box {
  background: #141416;
  border: 1px solid #2B2B30;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.primary-box-left {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}

.primary-box-text h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.primary-box-text p {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: monospace;
}

.primary-download-btn {
  background: #FFBD2E;
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.primary-download-btn:hover {
  transform: scale(1.05);
  background: #FFC950;
}

.warning-box {
  background: rgba(255, 189, 46, 0.03);
  border: 1px solid rgba(255, 189, 46, 0.2);
  border-radius: 12px;
  padding: 24px;
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFBD2E;
  margin-bottom: 12px;
}

.warning-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.warning-desc {
  font-size: 0.85rem;
  color: #bbb;
  line-height: 1.5;
  margin-bottom: 16px;
}

.warning-method {
  margin-bottom: 16px;
}

.warning-method h4 {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
}

.warning-method p {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 8px;
}

.warning-code-block {
  background: #000;
  border: 1px solid rgba(255, 189, 46, 0.4);
  border-radius: 6px;
  padding: 10px 12px;
}

.warning-code-block code {
  color: #FFBD2E;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

.warning-footnote {
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.5;
  margin-top: 16px;
}
