/* GPTImage2 Official Website - Minimalist Light Theme */

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

:root {
  color-scheme: light;
  
  /* Color Tokens - Minimalist Light Mode */
  --bg-color: #FFFFFF;
  --bg-secondary: #F5F5F7; /* macOS System Light Gray */
  --bg-card: #FFFFFF;
  --border-color: #E5E7EB;
  --border-color-active: #8B5CF6;
  
  --text-primary: #1D1D1F;   /* Apple Dark Text */
  --text-secondary: #515154; /* Apple Medium Text */
  --text-muted: #86868B;     /* Apple Gray Text */
  
  --primary: #8B5CF6;       /* App Native Purple */
  --primary-light: #F5F3FF;
  --secondary: #007AFF;     /* macOS System Blue */
  
  /* Fonts */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  
  /* Layout */
  --container-max-width: 1000px;
  --header-height: 70px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #C1C1C1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A8A8A8;
}

/* --- 2. Typography & Core Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.2rem, 1.5rem + 3.5vw, 3.8rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
  text-wrap: balance;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --- 3. Card Style --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card:hover {
  border-color: #D1D5DB;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* --- 4. Navigation --- */
header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
}

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

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

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

/* Nav Button */
.btn-nav {
  background: var(--primary);
  color: white;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.btn-nav:hover {
  background-color: #7C3AED;
  color: white;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
}

/* --- 5. Hero Section --- */
.hero-section {
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.badge {
  align-self: flex-start;
  background: var(--primary-light);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background-color: #7C3AED;
}

.btn-secondary {
  background: #F5F5F7;
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #E8E8ED;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.hero-image-wrapper img {
  width: 100%;
  display: block;
}

/* --- 6. Features Grid --- */
.features-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon-box {
  color: var(--primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

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

/* --- 7. (Removed) --- */

/* --- 8. Download / Install Section --- */
.download-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.download-banner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.download-banner h2 {
  margin-bottom: 0;
}

.download-banner p {
  font-size: 1.05rem;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.install-guide {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.install-guide code {
  background: #E5E7EB;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  color: var(--text-primary);
}

/* --- 9. Footer --- */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: #FFFFFF;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* --- 10. Legal Pages --- */
.legal-page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  min-height: calc(100vh - var(--header-height) - 100px);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.update-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: left;
  color: var(--text-primary);
}

.legal-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* --- 10. Responsive Adaptations --- */
@media (max-width: 868px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  
  .hero-text {
    align-items: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .coins-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  nav {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .download-banner {
    padding: 1.5rem 1rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
