/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(10, 37, 64, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.23);
}

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-alt);
}

.btn-accent {
    background: var(--color-accent);
    color: white;
}

.btn-accent:hover {
    background: var(--color-accent-hover);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Cards (Glassmorphism & Standard) */
.card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

/* Feature Icon */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 37, 64, 0.05);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

/* Accordion (FAQ) */
.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    padding: var(--spacing-md) 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    color: var(--color-text-light);
}

.accordion-item.active .accordion-body {
    max-height: 200px;
    padding-bottom: var(--spacing-md);
    transition: max-height 0.3s ease-in-out;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* iPhone 17 Frame (Dynamic Island) */
.device-frame {
    position: relative;
    width: 300px;
    height: 600px;
    background: #111;
    border-radius: 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 8px solid #222;
    /* Thinner, titanium-like border */
    margin: 0 auto;
    overflow: hidden;
    z-index: 10;
}

/* Dynamic Island */
.device-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    /* Floating from top */
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 25px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: white;
    overflow: hidden;
    position: relative;
    border-radius: 42px;
    /* Smoother curve matching outer 50px - 8px border */
}

/* Manual Slider Logic */
.device-scroll {
    display: flex;
    flex-direction: row;
    /* Horizontal layout for carousel */
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
    transform: translateX(0);
}

.device-scroll img {
    width: 100%;
    min-width: 100%;
    /* Ensure each image takes full width */
    height: 100%;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Floating Elements around phone */
.mockup-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    z-index: 100;
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -60px;
}

.carousel-next {
    right: -60px;
}