/* Local Fonts */
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("/fonts/DMSerifDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg-dark: #0a0a0f;
  --bg-subtle: #0d0d14;
  --gold: #c9a227;
  --gold-bright: #ffd700;
  --gold-muted: #a88b1e;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Subtle grain texture overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 1000;
}

/* Star particles */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 1px;
  height: 1px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Main container */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Logo */
.logo {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.05em;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

/* Tagline */
.tagline {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: #f9efab;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

/* Description */
.description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 480px;
}

/* iPhone Mockup Container */
.mockup-container {
  margin-bottom: 3rem;
  perspective: 1000px;
}

.mockup-wrapper {
  position: relative;
  transform: rotateY(-15deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.mockup-wrapper:hover {
  transform: rotateY(-10deg) rotateX(3deg);
}

/* iPhone Frame */
.iphone-mockup {
  position: relative;
  width: 240px;
  height: 490px;
  background: linear-gradient(135deg, #1a1a1f 0%, #2a2a30 50%, #1a1a1f 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

/* iPhone Screen */
.iphone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0d0d14 0%, #0a0a0f 100%);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

/* Dynamic Island */
.iphone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 18px;
  background: #000;
  border-radius: 12px;
}

/* Floating shadow */
.mockup-shadow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  filter: blur(10px);
}

/* App screenshot */
.app-screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  color: transparent;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-screenshot.active {
  opacity: 1;
}

/* TestFlight Badge */
.testflight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.3rem 0.6rem 1.3rem;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.testflight-badge:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

.testflight-badge:active {
  transform: scale(0.98);
}

.testflight-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex-shrink: 0;
}

.testflight-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.testflight-text-small {
  font-family: "Helvetica", sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
}

.testflight-text-large {
  font-family: "Helvetica", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

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

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 3rem 1.25rem;
  }

  .logo {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .description {
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
  }

  .iphone-mockup {
    width: 200px;
    height: 410px;
    border-radius: 35px;
    padding: 10px;
  }

  .iphone-screen {
    border-radius: 26px;
  }

  .iphone-notch {
    width: 52px;
    height: 15px;
    top: 13px;
  }

  .testflight-text-large {
    font-size: 1.1rem;
  }
}

/* Subtle ambient glow behind mockup */
.mockup-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
