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

:root {
  --bg: #fafafa;
  --bg-alt: #f5f3f0;
  --fg: #1a1a1a;
  --fg-muted: #555;
  --fg-light: rgba(255,255,255,0.85);
  --accent: #e85d26;
  --accent-hover: #d14d1a;
  --accent-glow: rgba(232, 93, 38, 0.25);
  --border: #e0dcd8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1), 0 16px 48px rgba(0,0,0,0.06);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-sm { padding: 8px 20px; font-size: 0.875rem; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline-light {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(24, 24, 30, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.nav-logo:hover { color: #fff; }
.logo-icon { font-size: 1.4rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a { color: rgba(255,255,255,0.65); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }

/* === Hero === */
.hero {
  padding: 160px 0 120px;
  text-align: center;
  background: linear-gradient(135deg, #18181e 0%, #1e2a3a 30%, #2a1f35 60%, #1a2230 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(232, 93, 38, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -15%;
  width: 50%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #e85d26, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--fg-light);
  max-width: 500px;
  margin: 0 auto 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Sections === */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-glow {
  background: #f8f7f6;
  position: relative;
  overflow: hidden;
}
.section-glow::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(232, 93, 38, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.section-glow::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.section-dark {
  background: linear-gradient(135deg, #18181e 0%, #1e2535 100%);
  color: #fff;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: var(--fg-light); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  text-align: center;
}

.section-sub {
  color: var(--fg-muted);
  text-align: center;
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 48px;
}

/* === App Grid === */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.app-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  color: var(--fg);
  border: 1px solid var(--border);
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--fg);
}

.app-card-purple { background: linear-gradient(180deg, #ede9fe 0%, #f5f3ff 40%, #fff 60%); border-color: #ddd6fe; }
.app-card-orange { background: linear-gradient(180deg, #fff1e6 0%, #fff7f0 40%, #fff 60%); border-color: #fed7aa; }
.app-card-green  { background: linear-gradient(180deg, #d1fae5 0%, #ecfdf5 40%, #fff 60%); border-color: #a7f3d0; }
.app-card-pink   { background: linear-gradient(180deg, #fce7f3 0%, #fdf2f8 40%, #fff 60%); border-color: #fbcfe8; }

.app-screenshot {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.app-screenshot img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.app-card:hover .app-screenshot img {
  transform: scale(1.04);
}

.app-screenshot.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-style: italic;
}

.app-screenshot.placeholder-1 {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
}
.app-screenshot.placeholder-2 {
  background: linear-gradient(135deg, #e85d26 0%, #f59e0b 100%);
}
.app-screenshot.placeholder-3 {
  background: linear-gradient(135deg, #059669 0%, #34d399 100%);
}

.app-info {
  padding: 24px;
}

.app-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.device-desktop {
  background: #eff6ff;
  color: #2563eb;
}

.device-mobile {
  background: #faf5ff;
  color: #9333ea;
}

.app-info p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

.tag-purple { background: #eef2ff; color: #6366f1; }
.tag-orange { background: #fff4ed; color: #e85d26; }
.tag-green  { background: #ecfdf5; color: #059669; }
.tag-blue   { background: #eff6ff; color: #2563eb; }
.tag-pink   { background: #fdf2f8; color: #e11d48; }

/* === About === */
.about-inner { max-width: 700px; margin: 0 auto; }

.about-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.about-content p:last-child { margin-bottom: 0; }

/* === Contact === */
.contact-inner { text-align: center; }

.contact-card {
  display: inline-flex;
  gap: 48px;
  background: #fff;
  padding: 40px 56px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.contact-icon {
  font-size: 1.6rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contact-icon-email {
  background: linear-gradient(135deg, #fff4ed, #ffe8d6);
  color: var(--accent);
}

.contact-icon-github {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #6366f1;
}

.contact-method h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.contact-method a {
  font-size: 1.05rem;
  font-weight: 600;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.footer-copy {
  color: var(--fg-muted);
  font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero { padding: 120px 0 80px; }
  .section { padding: 64px 0; }
  .app-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 28px 32px; gap: 28px; }

  .nav-links a:not(.btn) { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .contact-card { flex-direction: column; }
}
