/* Taeshe Studio — Refined editorial design system */

:root {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --gold: #b8962e;
  --gold-light: #c9a962;
  --gold-dark: #a88b4a;
  --gold-glow: rgba(184, 150, 46, 0.15);
  --accent-o: #e86533;

  --bg: #ffffff;
  --bg-alt: #faf9f7;
  --bg-warm: #f7f5f2;
  --bg-card: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-tertiary: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 6px 24px rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.72);

  --section-padding: 120px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --gold: #dfc88a;
    --gold-light: #e9d49e;
    --gold-dark: #c9a962;
    --gold-glow: rgba(223, 200, 138, 0.15);
    --accent-o: #f09060;

    --bg: #000000;
    --bg-alt: #111111;
    --bg-warm: #0a0a0a;
    --bg-card: rgba(28, 28, 30, 0.8);
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --text-tertiary: #6e6e73;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: none;
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(0, 0, 0, 0.72);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

::selection {
  background-color: rgba(201, 169, 98, 0.25);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

/* Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-logo {
  height: 36px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}

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

/* Mobile menu */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.5rem 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
  border-bottom: none;
  color: var(--gold);
  font-weight: 500;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: block;
  }
}

/* Hero */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}

.hero-logo {
  height: 72px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1875rem;
  max-width: 600px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

/* Hero Entrance Animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-anim {
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out-expo) forwards;
}

.hero-anim-1 { animation-delay: 0.1s; }
.hero-anim-2 { animation-delay: 0.25s; }
.hero-anim-3 { animation-delay: 0.4s; }
.hero-anim-4 { animation-delay: 0.55s; }

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .hero {
    padding: 120px 0 56px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.0625rem;
  }
  .hero-logo {
    height: 56px;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* Section */
section {
  padding: var(--section-padding) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Section Divider */
.section-divider {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
}

/* App Card */
.app-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
  margin-bottom: 1.5rem;
}

.app-card:last-child {
  margin-bottom: 0;
}

.app-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.app-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.accent-o {
  color: var(--accent-o);
}

.app-desc-poetic {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text) !important;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.app-info p {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.app-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--gold-dark);
}

.app-link:hover {
  color: var(--gold);
}

@media (max-width: 640px) {
  .app-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--gold);
  color: #fff;
  border-radius: 980px;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-card);
  color: var(--text);
  opacity: 1;
}

/* Features Grid */
.features-grid {
  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: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-header h3 {
  margin: 0;
  font-size: 1.0625rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.6;
}

/* App Hero */
.app-hero {
  padding: 140px 0 64px;
  text-align: center;
}

.app-hero .app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.app-hero h1 {
  margin-bottom: 0.5rem;
}

.app-hero .tagline {
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Prose (for blog/legal content) */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.75rem;
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.prose p,
.prose li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

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

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.prose li {
  margin: 0.5rem 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}

footer p {
  font-size: 0.875rem;
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.back-link:hover {
  color: var(--text);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* CTA Section */
.cta {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
}

.cta h2 {
  margin-bottom: 0.5rem;
}

.cta p {
  margin-bottom: 1.5rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Accessibility */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-anim {
    opacity: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Tablet breakpoint */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .section-title {
    margin-bottom: 2.5rem;
  }

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

  .cta {
    padding: 2.5rem 1.5rem;
    margin: 2rem 0;
  }
}

/* Mobile breakpoint */
@media (max-width: 640px) {
  :root {
    --section-padding: 64px;
  }

  .container {
    padding: 0 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .app-hero {
    padding: 110px 0 40px;
  }

  .app-hero .app-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
  }

  .app-hero .tagline {
    font-size: 1.1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
  }

  .prose {
    padding: 0 0.5rem;
  }

  .prose h2 {
    font-size: 1.25rem;
  }

  .prose h3 {
    font-size: 1rem;
  }

  .cta {
    padding: 2rem 1rem;
    border-radius: 16px;
  }

  .back-link {
    margin-bottom: 1.5rem;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  .container {
    padding: 0 0.75rem;
  }

  .nav-logo {
    height: 30px;
  }

  .hero-logo {
    height: 48px;
  }

  .footer-links {
    gap: 1rem;
  }
}

/* Print */
@media print {
  nav, .cta, footer { display: none; }
  .hero, .app-hero { padding-top: 2rem; }
  body { background: #fff; color: #000; }
}
