/* style.css — Apptelligent Coding design system */
:root {
    --accent: #2563eb;
    --accent-dark: #1e40af;
    --text-dark: #12172b;
    --text-light: #5b6472;
    --bg: #ffffff;
    --bg-alt: #f6f8fc;
    --border: #e6e9f0;
    --radius: 20px;
    --shadow: 0 10px 30px rgba(18, 23, 43, 0.06);
    --shadow-hover: 0 16px 40px rgba(18, 23, 43, 0.10);
    --max-width: 1140px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
    --mono: "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-light); margin: 0 0 16px; }
a { color: var(--accent); text-decoration: none; }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.hero { padding-top: 120px; text-align: center; position: relative; }
.hero-lead { font-size: 1.25rem; max-width: 640px; margin: 0 auto 32px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text-dark); }
.logo span { color: var(--accent); }
.nav-menu { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; align-items: center; }
.nav-menu a { color: var(--text-dark); font-weight: 500; }
.nav-menu a:hover { color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 0; font: inherit; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-dark); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--border);
        flex-direction: column; gap: 0; padding: 8px 24px;
        display: none;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-menu li:last-child { border-bottom: none; }
}

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 24px; }
.footer-content { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; margin-bottom: 32px; }
.footer-brand p { max-width: 280px; }
.footer-links h4, .footer-contact h4 { margin: 0 0 12px; font-size: 0.95rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .footer-contact a { color: var(--text-light); }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; }
.footer-bottom p { margin: 0; font-size: 0.85rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Process timeline */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.process-step { text-align: center; }
.process-step .step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; margin: 0 auto 16px;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { margin: 0; font-size: 0.95rem; }

@media (max-width: 900px) {
    .process-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Tech stack */
.tech-pills {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.tech-pill {
    padding: 10px 20px; border-radius: 999px;
    background: #fff; border: 1px solid var(--border);
    font-weight: 600; font-size: 0.95rem; color: var(--text-dark);
    box-shadow: var(--shadow);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}
.team-grid .card { text-align: center; }
.team-photo {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-size: cover;
    background-position: center 20%;
    margin: 0 auto 20px;
    border: 3px solid var(--bg-alt);
    box-shadow: var(--shadow);
}
.team-grid h3 { margin-bottom: 4px; }
.team-grid .role { color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.team-grid .bio { font-size: 0.92rem; line-height: 1.7; margin-bottom: 0; }

@media (max-width: 640px) {
    .team-grid { grid-template-columns: 1fr; }
}

/* PicLoc teaser */
.picloc-teaser { text-align: center; }
.picloc-shots {
    display: flex; gap: 24px; justify-content: center; margin: 40px 0;
    flex-wrap: wrap;
}
.picloc-shot {
    width: 240px;
    aspect-ratio: 1206 / 2360;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
    background-size: cover;
    background-position: center;
}

/* Legal page */
.legal-page { padding: 140px 0 96px; }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 32px; }
.legal-content h2 { font-size: 1.25rem; margin-top: 32px; margin-bottom: 8px; }
.legal-content p { line-height: 1.8; }

/* Phone mockup with tilt effect */
.phone-mockup {
    display: flex;
    justify-content: center;
    margin: 0 0 40px;
    perspective: 1200px;
}
.phone-mockup-frame {
    width: 220px;
    aspect-ratio: 1206 / 2462;
    border-radius: 34px;
    border: 8px solid var(--text-dark);
    background: var(--text-dark);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}
.phone-mockup-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 26px;
}

/* Push notification toast */
.notification-toast {
    position: absolute;
    top: 24px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(360px, calc(100% - 48px));
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: var(--text-dark);
    opacity: 0;
    transform: translate(-50%, -140%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    z-index: 50;
}
.notification-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
.notification-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.notification-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.notification-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
}
.notification-text {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Terminal footer line */
.terminal-line {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 12px !important;
}
.terminal-cursor {
    display: inline-block;
    margin-left: 2px;
    animation: terminal-blink 1s step-end infinite;
}
@keyframes terminal-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
