/* Apple Developer Inspired Theme (Dark Mode Default) */
:root {
    --color-bg-base: #000000;
    --color-bg-card: #1c1c1e;
    --color-bg-nav: rgba(0, 0, 0, 0.8);
    --color-bg-localnav: rgba(29, 29, 31, 0.72);
    
    --color-text-primary: #f5f5f7;
    --color-text-secondary: #86868b;
    --color-text-tertiary: #6e6e73;
    
    --color-blue: #2997ff;
    --color-blue-hover: #147ce5;
    
    --color-border: rgba(255, 255, 255, 0.15);
    --color-border-subtle: rgba(255, 255, 255, 0.08);

    /* Apple uses system fonts */
    --font-family-base: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-family-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-family-mono: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-base);
}

body {
    font-family: var(--font-family-base);
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.text-center {
    text-align: center;
}

/* Typography System */
.typography-hero {
    font-family: var(--font-family-display);
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 16px;
}

.typography-headline {
    font-family: var(--font-family-display);
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 16px;
}

.typography-intro {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 400;
    letter-spacing: .009em;
    color: var(--color-text-secondary);
}

.typography-card-title {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 600;
    letter-spacing: .009em;
    margin-bottom: 8px;
}

.typography-card-body {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--color-text-secondary);
}

.eyebrow {
    font-size: 12px;
    line-height: 1.33337;
    font-weight: 600;
    letter-spacing: -.01em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

/* Links & Buttons */
.link-more {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--color-blue);
    display: inline-flex;
    align-items: center;
}

.link-more:hover {
    text-decoration: underline;
}

.link-large {
    font-size: 21px;
}

.icon-chevron {
    width: 8px;
    height: 12px;
    margin-left: 6px;
    margin-top: 2px;
}

.btn {
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.33337;
    font-weight: 400;
    letter-spacing: -.01em;
    border-radius: 980px;
    padding: 4px 11px;
}

.btn-pill {
    padding: 4px 11px;
}

.btn-blue {
    background-color: var(--color-text-primary);
    color: var(--color-bg-base);
}

.btn-blue:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Global Nav */
.global-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: var(--color-bg-nav);
    z-index: 9999;
    border-bottom: 1px solid var(--color-border-subtle);
}

.global-nav-content {
    max-width: 980px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.nav-logo {
    color: var(--color-text-primary);
    opacity: 0.8;
}

.nav-logo:hover {
    opacity: 1;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -.01em;
    color: var(--color-text-primary);
    opacity: 0.8;
}

.nav-list a:hover {
    opacity: 1;
}

/* Local Nav */
.local-nav {
    position: sticky;
    top: 0;
    height: 52px;
    background: var(--color-bg-localnav);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9998;
    border-bottom: 1px solid var(--color-border-subtle);
    margin-top: 44px; /* offset for global nav */
}

.local-nav-content {
    max-width: 980px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.local-nav-title {
    font-size: 21px;
    line-height: 1.14286;
    font-weight: 600;
    letter-spacing: .011em;
}

/* Background Utility */
.bg-dark-gray {
    background-color: var(--color-bg-card);
}

.bg-black {
    background-color: var(--color-bg-base);
}

/* Hero Section */
.hero {
    padding-top: 80px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto 60px;
}

.hero-cta {
    margin-top: 24px;
}

/* Hardware / Code Mockup */
.hero-hardware-mockup {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 22px;
}

.code-window {
    background-color: #1e1e1e;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.window-header {
    height: 32px;
    background-color: #2d2d2d;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    border-bottom: 1px solid #111;
}

.window-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.close { background-color: #ff5f56; }
.dot.minimize { background-color: #ffbd2e; }
.dot.maximize { background-color: #27c93f; }

.window-body {
    padding: 24px;
    overflow-x: auto;
}

.window-body pre {
    font-family: var(--font-family-mono);
    font-size: 14px;
    color: #d4d4d4;
    line-height: 1.5;
}

/* Services */
.section-services {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
}

.card-content {
    padding: 40px;
    flex: 1;
}

.icon-wrapper {
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

.card-visual {
    flex: 1;
    min-height: 200px;
}

/* Projects */
.section-projects {
    padding: 100px 0;
    border-top: 1px solid var(--color-border-subtle);
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.project-panel {
    text-align: center;
}

.project-info {
    max-width: 600px;
    margin: 0 auto 40px;
}

.project-eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ff3b30; /* Apple red */
    margin-bottom: 8px;
}

.project-visual-mockup {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    height: 400px;
    border-radius: 20px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
}

/* Footer */
.global-footer {
    padding: 60px 0 24px;
    background-color: var(--color-bg-base);
    border-top: 1px solid var(--color-border-subtle);
    color: var(--color-text-secondary);
}

.footer-cta {
    margin-bottom: 60px;
}

.footer-directory {
    display: flex;
    gap: 80px;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.directory-column {
    flex: 1;
}

.directory-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.directory-column ul li {
    margin-bottom: 8px;
}

.directory-column a {
    font-size: 12px;
}

.directory-column a:hover {
    color: var(--color-text-primary);
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.legal-links {
    display: flex;
    gap: 16px;
}

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

/* Responsive */
@media (max-width: 734px) {
    .nav-list { display: none; }
    .typography-hero { font-size: 40px; }
    .typography-headline { font-size: 32px; }
    .card-wide { flex-direction: column; }
    .footer-directory { flex-direction: column; gap: 40px; }
    .footer-legal { flex-direction: column; gap: 16px; text-align: center; }
}
