/* Alpha+ 3D Accessories — Apple-inspired light theme */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --panel: #ffffff;
  --border: #d2d2d7;
  --text: #1d1d1f;
  --text-dim: #86868b;
  --accent: #0071e3;
  --accent-dim: #0058b0;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo .plus { color: var(--accent); }

nav.primary ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
nav.primary a {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
nav.primary a:hover,
nav.primary a.active {
  color: var(--text);
  opacity: 0.7;
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 980px;
  font-weight: 400;
  font-size: 0.95rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.btn.solid {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.solid:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: #fff;
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  background: var(--bg);
  text-align: center;
}
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero .tag {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  max-width: 780px;
  line-height: 1.1;
  color: var(--text);
}
.hero p.lead {
  color: var(--text-dim);
  max-width: 560px;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 32px;
  line-height: 1.4;
}
.hero .cta-row { display: flex; gap: 16px; justify-content: center; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }

h2.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  text-align: center;
}
p.section-sub {
  color: var(--text-dim);
  margin: 0 auto 48px;
  max-width: 560px;
  font-size: 1.1rem;
  text-align: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
  nav.primary { display: none; }
  .hero h1 { font-size: 2.2rem; }
  h2.section-title { font-size: 1.8rem; }
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.card .icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,113,227,0.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.005em; }
.card p { color: var(--text-dim); margin: 0; font-size: 0.95rem; line-height: 1.5; }

/* Product photo placeholder */
.photo-placeholder {
  aspect-ratio: 1 / 1;
  background: repeating-linear-gradient(
    135deg,
    #fafafa,
    #fafafa 10px,
    #f0f0f2 10px,
    #f0f0f2 20px
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}
.photo-placeholder .ph-icon {
  font-size: 1.6rem;
  opacity: 0.5;
}

/* Badge / notice */
.notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 980px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Shop placeholder */
.shop-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-dim);
}
.shop-slot code {
  display: block;
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: left;
  overflow-x: auto;
}

/* Contact form */
form.contact {
  display: grid;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}
form.contact input,
form.contact textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}
form.contact input:focus,
form.contact textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
form.contact textarea { resize: vertical; min-height: 120px; }
form.contact .btn.solid { justify-self: center; padding: 12px 32px; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 32px 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Scroll reveal (Apple-style fade + rise on scroll) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
